Skip to content

Commit

Permalink
Enable static checks
Browse files Browse the repository at this point in the history
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
  • Loading branch information
dmcgowan committed May 10, 2020
1 parent ecd7b3c commit 132fb47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions digestset/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ func TestLookup(t *testing.T) {
}
assertEqualDigests(t, dgst, digests[3])

dgst, err = dset.Lookup("1234")
_, err = dset.Lookup("1234")
if err == nil {
t.Fatal("Expected ambiguous error looking up: 1234")
}
if err != ErrDigestAmbiguous {
t.Fatal(err)
}

dgst, err = dset.Lookup("9876")
_, err = dset.Lookup("9876")
if err == nil {
t.Fatal("Expected not found error looking up: 9876")
}
if err != ErrDigestNotFound {
t.Fatal(err)
}

dgst, err = dset.Lookup("sha256:1234")
_, err = dset.Lookup("sha256:1234")
if err == nil {
t.Fatal("Expected ambiguous error looking up: sha256:1234")
}
Expand Down

0 comments on commit 132fb47

Please sign in to comment.