1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

fix tests

This commit is contained in:
Victor Vieux 2013-06-21 09:20:57 +00:00
parent 8f2a80804c
commit 639833aaf5

View file

@ -34,7 +34,7 @@ func TestLogin(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
if status != "Login Succeeded\n" { if status != "Login Succeeded" {
t.Fatalf("Expected status \"Login Succeeded\", found \"%s\" instead", status) t.Fatalf("Expected status \"Login Succeeded\", found \"%s\" instead", status)
} }
} }
@ -55,7 +55,7 @@ func TestCreateAccount(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
expectedStatus := "Account created. Please use the confirmation link we sent" + expectedStatus := "Account created. Please use the confirmation link we sent" +
" to your e-mail to activate it.\n" " to your e-mail to activate it."
if status != expectedStatus { if status != expectedStatus {
t.Fatalf("Expected status: \"%s\", found \"%s\" instead.", expectedStatus, status) t.Fatalf("Expected status: \"%s\", found \"%s\" instead.", expectedStatus, status)
} }