Fix silly testing format mistakes

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
Milos Gajdos
2024-08-30 11:18:18 +01:00
parent 170ac07a5e
commit a940e61623
31 changed files with 132 additions and 132 deletions

View File

@@ -37,7 +37,7 @@ func TestCacheSet(t *testing.T) {
}
if len(cache.sets) != 1 || len(cache.sets[dgst]) == 0 {
t.Fatalf("Expected cache set")
t.Fatal("Expected cache set")
}
if cache.sets[dgst][0].Digest != desc.Digest {
t.Fatalf("Unexpected descriptor %v, expected %v", cache.sets[dgst][0], desc)
@@ -85,7 +85,7 @@ func TestCacheError(t *testing.T) {
}
if len(cache.sets) > 0 {
t.Fatalf("Set should not be called after stat error")
t.Fatal("Set should not be called after stat error")
}
}

View File

@@ -28,7 +28,7 @@ func checkBlobDescriptorCacheEmptyRepository(ctx context.Context, t *testing.T,
_, err := provider.RepositoryScoped("")
if err == nil {
t.Fatalf("expected an error when asking for invalid repo")
t.Fatal("expected an error when asking for invalid repo")
}
cache, err := provider.RepositoryScoped("foo/bar")
@@ -49,7 +49,7 @@ func checkBlobDescriptorCacheEmptyRepository(ctx context.Context, t *testing.T,
Size: 10,
MediaType: "application/octet-stream",
}); err == nil {
t.Fatalf("expected error setting value on invalid descriptor")
t.Fatal("expected error setting value on invalid descriptor")
}
if _, err := cache.Stat(ctx, ""); err != digest.ErrDigestInvalidFormat {