Skip to content

Commit

Permalink
🏃 Fix flake test in KCP webhook TestPaths
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <[email protected]>
  • Loading branch information
vincepri committed Mar 6, 2020
1 parent 4d0192c commit 6fa574a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,9 @@ func TestPaths(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
g := NewWithT(t)
g.Expect(paths(tt.path, tt.diff)).To(Equal(tt.expected))
for _, path := range paths(tt.path, tt.diff) {
g.Expect(path).To(BeElementOf(tt.expected))
}
})
}
}

0 comments on commit 6fa574a

Please sign in to comment.