2014-03-31 18:40:39 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os/exec"
|
2014-04-02 19:26:06 +00:00
|
|
|
"regexp"
|
|
|
|
"strings"
|
|
|
|
"time"
|
2014-09-10 19:36:01 +00:00
|
|
|
|
2014-09-15 18:44:58 +00:00
|
|
|
"github.com/docker/docker/pkg/timeutils"
|
2015-04-18 16:46:47 +00:00
|
|
|
"github.com/go-check/check"
|
2014-03-31 18:40:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// This used to work, it test a log of PageSize-1 (gh#4851)
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsContainerSmallerThanPage(c *check.C) {
|
2014-03-31 18:40:39 +00:00
|
|
|
testLen := 32767
|
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", fmt.Sprintf("for i in $(seq 1 %d); do echo -n =; done; echo", testLen))
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-03-31 18:40:39 +00:00
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-03-31 18:40:39 +00:00
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
|
|
|
|
logsCmd := exec.Command(dockerBinary, "logs", cleanedContainerID)
|
|
|
|
out, _, _, err = runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-03-31 18:40:39 +00:00
|
|
|
|
|
|
|
if len(out) != testLen+1 {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected log length of %d, received %d\n", testLen+1, len(out))
|
2014-03-31 18:40:39 +00:00
|
|
|
}
|
|
|
|
|
2014-04-04 00:22:32 +00:00
|
|
|
deleteContainer(cleanedContainerID)
|
2014-03-31 18:40:39 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Regression test: When going over the PageSize, it used to panic (gh#4851)
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsContainerBiggerThanPage(c *check.C) {
|
2014-03-31 18:40:39 +00:00
|
|
|
testLen := 32768
|
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", fmt.Sprintf("for i in $(seq 1 %d); do echo -n =; done; echo", testLen))
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-03-31 18:40:39 +00:00
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-03-31 18:40:39 +00:00
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
|
|
|
|
logsCmd := exec.Command(dockerBinary, "logs", cleanedContainerID)
|
|
|
|
out, _, _, err = runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-03-31 18:40:39 +00:00
|
|
|
|
|
|
|
if len(out) != testLen+1 {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected log length of %d, received %d\n", testLen+1, len(out))
|
2014-03-31 18:40:39 +00:00
|
|
|
}
|
|
|
|
|
2014-04-04 00:22:32 +00:00
|
|
|
deleteContainer(cleanedContainerID)
|
2014-03-31 18:40:39 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Regression test: When going much over the PageSize, it used to block (gh#4851)
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsContainerMuchBiggerThanPage(c *check.C) {
|
2014-03-31 18:40:39 +00:00
|
|
|
testLen := 33000
|
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", fmt.Sprintf("for i in $(seq 1 %d); do echo -n =; done; echo", testLen))
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-03-31 18:40:39 +00:00
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-03-31 18:40:39 +00:00
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
|
|
|
|
logsCmd := exec.Command(dockerBinary, "logs", cleanedContainerID)
|
|
|
|
out, _, _, err = runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-03-31 18:40:39 +00:00
|
|
|
|
|
|
|
if len(out) != testLen+1 {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected log length of %d, received %d\n", testLen+1, len(out))
|
2014-03-31 18:40:39 +00:00
|
|
|
}
|
|
|
|
|
2014-04-04 00:22:32 +00:00
|
|
|
deleteContainer(cleanedContainerID)
|
2014-03-31 18:40:39 +00:00
|
|
|
|
|
|
|
}
|
2014-04-02 19:26:06 +00:00
|
|
|
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsTimestamps(c *check.C) {
|
2014-04-02 19:26:06 +00:00
|
|
|
testLen := 100
|
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", fmt.Sprintf("for i in $(seq 1 %d); do echo =; done;", testLen))
|
|
|
|
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-04-02 19:26:06 +00:00
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-04-02 19:26:06 +00:00
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
|
|
|
|
logsCmd := exec.Command(dockerBinary, "logs", "-t", cleanedContainerID)
|
|
|
|
out, _, _, err = runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-04-02 19:26:06 +00:00
|
|
|
|
|
|
|
lines := strings.Split(out, "\n")
|
|
|
|
|
|
|
|
if len(lines) != testLen+1 {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected log %d lines, received %d\n", testLen+1, len(lines))
|
2014-04-02 19:26:06 +00:00
|
|
|
}
|
|
|
|
|
2014-05-10 16:51:16 +00:00
|
|
|
ts := regexp.MustCompile(`^.* `)
|
2014-04-02 19:26:06 +00:00
|
|
|
|
|
|
|
for _, l := range lines {
|
|
|
|
if l != "" {
|
2014-09-15 18:44:58 +00:00
|
|
|
_, err := time.Parse(timeutils.RFC3339NanoFixed+" ", ts.FindString(l))
|
2014-04-02 19:26:06 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Failed to parse timestamp from %v: %v", l, err)
|
2014-04-02 19:26:06 +00:00
|
|
|
}
|
2014-09-10 19:36:01 +00:00
|
|
|
if l[29] != 'Z' { // ensure we have padded 0's
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Timestamp isn't padded properly: %s", l)
|
2014-09-10 19:36:01 +00:00
|
|
|
}
|
2014-04-02 19:26:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
deleteContainer(cleanedContainerID)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsSeparateStderr(c *check.C) {
|
2014-04-02 19:26:06 +00:00
|
|
|
msg := "stderr_log"
|
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", fmt.Sprintf("echo %s 1>&2", msg))
|
|
|
|
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-04-02 19:26:06 +00:00
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-04-02 19:26:06 +00:00
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
|
|
|
|
logsCmd := exec.Command(dockerBinary, "logs", cleanedContainerID)
|
|
|
|
stdout, stderr, _, err := runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-04-02 19:26:06 +00:00
|
|
|
|
|
|
|
if stdout != "" {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected empty stdout stream, got %v", stdout)
|
2014-04-02 19:26:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stderr = strings.TrimSpace(stderr)
|
|
|
|
if stderr != msg {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected %v in stderr stream, got %v", msg, stderr)
|
2014-04-02 19:26:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
deleteContainer(cleanedContainerID)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsStderrInStdout(c *check.C) {
|
2014-04-02 19:26:06 +00:00
|
|
|
msg := "stderr_log"
|
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "-t", "busybox", "sh", "-c", fmt.Sprintf("echo %s 1>&2", msg))
|
|
|
|
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-04-02 19:26:06 +00:00
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-04-02 19:26:06 +00:00
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
|
|
|
|
logsCmd := exec.Command(dockerBinary, "logs", cleanedContainerID)
|
|
|
|
stdout, stderr, _, err := runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-04-02 19:26:06 +00:00
|
|
|
|
|
|
|
if stderr != "" {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected empty stderr stream, got %v", stdout)
|
2014-04-02 19:26:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stdout = strings.TrimSpace(stdout)
|
|
|
|
if stdout != msg {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected %v in stdout stream, got %v", msg, stdout)
|
2014-04-02 19:26:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
deleteContainer(cleanedContainerID)
|
|
|
|
|
|
|
|
}
|
2014-06-03 11:09:33 +00:00
|
|
|
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsTail(c *check.C) {
|
2014-06-03 11:09:33 +00:00
|
|
|
testLen := 100
|
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", fmt.Sprintf("for i in $(seq 1 %d); do echo =; done;", testLen))
|
|
|
|
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-06-03 11:09:33 +00:00
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-06-03 11:09:33 +00:00
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
|
|
|
|
logsCmd := exec.Command(dockerBinary, "logs", "--tail", "5", cleanedContainerID)
|
|
|
|
out, _, _, err = runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-06-03 11:09:33 +00:00
|
|
|
|
|
|
|
lines := strings.Split(out, "\n")
|
|
|
|
|
|
|
|
if len(lines) != 6 {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected log %d lines, received %d\n", 6, len(lines))
|
2014-06-03 11:09:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
logsCmd = exec.Command(dockerBinary, "logs", "--tail", "all", cleanedContainerID)
|
|
|
|
out, _, _, err = runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-06-03 11:09:33 +00:00
|
|
|
|
|
|
|
lines = strings.Split(out, "\n")
|
|
|
|
|
|
|
|
if len(lines) != testLen+1 {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected log %d lines, received %d\n", testLen+1, len(lines))
|
2014-06-03 11:09:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
logsCmd = exec.Command(dockerBinary, "logs", "--tail", "random", cleanedContainerID)
|
|
|
|
out, _, _, err = runCommandWithStdoutStderr(logsCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("failed to log container: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-06-03 11:09:33 +00:00
|
|
|
|
|
|
|
lines = strings.Split(out, "\n")
|
|
|
|
|
|
|
|
if len(lines) != testLen+1 {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Expected log %d lines, received %d\n", testLen+1, len(lines))
|
2014-06-03 11:09:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
deleteContainer(cleanedContainerID)
|
|
|
|
}
|
2014-08-20 16:02:56 +00:00
|
|
|
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsFollowStopped(c *check.C) {
|
2014-08-20 16:02:56 +00:00
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "echo", "hello")
|
|
|
|
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
2014-10-14 21:22:49 +00:00
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-14 21:22:49 +00:00
|
|
|
}
|
2014-08-20 16:02:56 +00:00
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-08-20 16:02:56 +00:00
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
|
|
|
|
logsCmd := exec.Command(dockerBinary, "logs", "-f", cleanedContainerID)
|
|
|
|
if err := logsCmd.Start(); err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatal(err)
|
2014-08-20 16:02:56 +00:00
|
|
|
}
|
|
|
|
|
2015-04-18 16:46:47 +00:00
|
|
|
ch := make(chan struct{})
|
2014-08-20 16:02:56 +00:00
|
|
|
go func() {
|
|
|
|
if err := logsCmd.Wait(); err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatal(err)
|
2014-08-20 16:02:56 +00:00
|
|
|
}
|
2015-04-18 16:46:47 +00:00
|
|
|
close(ch)
|
2014-08-20 16:02:56 +00:00
|
|
|
}()
|
|
|
|
|
|
|
|
select {
|
2015-04-18 16:46:47 +00:00
|
|
|
case <-ch:
|
2014-08-20 16:02:56 +00:00
|
|
|
case <-time.After(1 * time.Second):
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatal("Following logs is hanged")
|
2014-08-20 16:02:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
deleteContainer(cleanedContainerID)
|
|
|
|
}
|
2014-10-30 19:33:26 +00:00
|
|
|
|
|
|
|
// Regression test for #8832
|
2015-04-18 16:46:47 +00:00
|
|
|
func (s *DockerSuite) TestLogsFollowSlowStdoutConsumer(c *check.C) {
|
2014-10-30 19:33:26 +00:00
|
|
|
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "/bin/sh", "-c", `usleep 200000;yes X | head -c 200000`)
|
|
|
|
|
|
|
|
out, _, _, err := runCommandWithStdoutStderr(runCmd)
|
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("run failed with errors: %s, %v", out, err)
|
2014-10-30 19:33:26 +00:00
|
|
|
}
|
|
|
|
|
2015-04-06 13:21:18 +00:00
|
|
|
cleanedContainerID := strings.TrimSpace(out)
|
2014-10-30 19:33:26 +00:00
|
|
|
|
|
|
|
stopSlowRead := make(chan bool)
|
|
|
|
|
|
|
|
go func() {
|
|
|
|
exec.Command(dockerBinary, "wait", cleanedContainerID).Run()
|
|
|
|
stopSlowRead <- true
|
|
|
|
}()
|
|
|
|
|
|
|
|
logCmd := exec.Command(dockerBinary, "logs", "-f", cleanedContainerID)
|
|
|
|
|
|
|
|
stdout, err := logCmd.StdoutPipe()
|
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatal(err)
|
2014-10-30 19:33:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if err := logCmd.Start(); err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatal(err)
|
2014-10-30 19:33:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// First read slowly
|
|
|
|
bytes1, err := consumeWithSpeed(stdout, 10, 50*time.Millisecond, stopSlowRead)
|
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatal(err)
|
2014-10-30 19:33:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// After the container has finished we can continue reading fast
|
|
|
|
bytes2, err := consumeWithSpeed(stdout, 32*1024, 0, nil)
|
|
|
|
if err != nil {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatal(err)
|
2014-10-30 19:33:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
actual := bytes1 + bytes2
|
|
|
|
expected := 200000
|
|
|
|
if actual != expected {
|
2015-04-18 16:46:47 +00:00
|
|
|
c.Fatalf("Invalid bytes read: %d, expected %d", actual, expected)
|
2014-10-30 19:33:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|