Skip to content

Commit

Permalink
Merge pull request #279 from fluxcd/fix-flacky-tests
Browse files Browse the repository at this point in the history
Use unique resources in tests
  • Loading branch information
stefanprodan authored Jun 24, 2022
2 parents 5c1b128 + a90325d commit 19f3753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func TestImageRepositoryReconciler_imageAttribute_schemePrefix(t *testing.T) {
},
}
objectName := types.NamespacedName{
Name: "random",
Name: "schemeprefix" + randStringRunes(5),
Namespace: "default",
}

Expand Down Expand Up @@ -359,7 +359,7 @@ func TestImageRepositoryReconciler_imageAttribute_withTag(t *testing.T) {
},
}
objectName := types.NamespacedName{
Name: "random",
Name: "withtag" + randStringRunes(5),
Namespace: "default",
}

Expand Down Expand Up @@ -398,7 +398,7 @@ func TestImageRepositoryReconciler_imageAttribute_hostPort(t *testing.T) {
},
}
objectName := types.NamespacedName{
Name: "random",
Name: "hostport" + randStringRunes(5),
Namespace: "default",
}

Expand Down

0 comments on commit 19f3753

Please sign in to comment.