Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions clients/storage/blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func TestListContainersPagination(t *testing.T) {

// Compare
if !reflect.DeepEqual(created, seen) {
t.Fatal("Wrong pagination results:\nExpected:\t\t%v\nGot:\t\t%v", created, seen)
t.Fatalf("Wrong pagination results:\nExpected:\t\t%v\nGot:\t\t%v", created, seen)
}
}

Expand Down Expand Up @@ -312,7 +312,7 @@ func TestDeleteContainerIfExists(t *testing.T) {
t.Fatalf("Not supposed to return error, got: %s", err)
}
if expected := false; ok != expected {
t.Fatal("Wrong deletion status. Expected: %v; Got: %v", expected, ok)
t.Fatalf("Wrong deletion status. Expected: %v; Got: %v", expected, ok)
}

// Existing container
Expand All @@ -325,7 +325,7 @@ func TestDeleteContainerIfExists(t *testing.T) {
t.Fatalf("Not supposed to return error, got: %s", err)
}
if expected := true; ok != expected {
t.Fatal("Wrong deletion status. Expected: %v; Got: %v", expected, ok)
t.Fatalf("Wrong deletion status. Expected: %v; Got: %v", expected, ok)
}
}

Expand Down Expand Up @@ -580,7 +580,7 @@ func TestPutEmptyBlockBlob(t *testing.T) {
t.Fatal(err)
}
if props.ContentLength != 0 {
t.Fatal("Wrong content length for empty blob: %s", props.ContentLength)
t.Fatalf("Wrong content length for empty blob: %d", props.ContentLength)
}
}

Expand Down Expand Up @@ -797,7 +797,7 @@ func TestGetBlockList_PutBlockList(t *testing.T) {
}

if expected := 1; len(uncommitted.UncommittedBlocks) != expected {
t.Fatal("Uncommitted blocks wrong. Expected: %d, got: %d", expected, len(uncommitted.UncommittedBlocks))
t.Fatalf("Uncommitted blocks wrong. Expected: %d, got: %d", expected, len(uncommitted.UncommittedBlocks))
}

// Commit block list
Expand Down
4 changes: 2 additions & 2 deletions clients/storage/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ func Test_prepareBlockListRequest(t *testing.T) {
empty := []Block{}
expected := `<?xml version="1.0" encoding="utf-8"?><BlockList></BlockList>`
if out := prepareBlockListRequest(empty); expected != out {
t.Error("Wrong block list. Expected: '%s', got: '%s'", expected, out)
t.Errorf("Wrong block list. Expected: '%s', got: '%s'", expected, out)
}

blocks := []Block{{"foo", BlockStatusLatest}, {"bar", BlockStatusUncommitted}}
expected = `<?xml version="1.0" encoding="utf-8"?><BlockList><Latest>foo</Latest><Uncommitted>bar</Uncommitted></BlockList>`
if out := prepareBlockListRequest(blocks); expected != out {
t.Error("Wrong block list. Expected: '%s', got: '%s'", expected, out)
t.Errorf("Wrong block list. Expected: '%s', got: '%s'", expected, out)
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/http/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (tcs *testConnSet) check(t *testing.T) {
tcs.mu.Lock()
continue
}
t.Errorf("TCP connection #%d, %p (of %d total) was not closed", i+1, c, len(tcs.list))
t.Errorf("TCP connection #%d, %+v (of %d total) was not closed", i+1, c, len(tcs.list))
}
}
}
Expand Down