Skip to content

Commit f212ea1

Browse files
author
Tycho Andersen
committed
fix test
Signed-off-by: Tycho Andersen <[email protected]>
1 parent 09e536a commit f212ea1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pass/pass_linux_test.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ func TestPassHelper(t *testing.T) {
5454
t.Fatal(err)
5555
}
5656

57-
_, _, err = helper.Get(server)
58-
if err == nil {
59-
t.Fatalf("%s shuldn't exist any more", server)
57+
username, _, err = helper.Get(server)
58+
if err != nil {
59+
t.Fatal(err)
60+
}
61+
62+
if username != "" {
63+
t.Fatalf("%s shouldn't exist any more", username)
6064
}
6165
}
6266

0 commit comments

Comments
 (0)