Skip to content

Commit

Permalink
[BUG] Increase retry to 30 for memberlist test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishiihara committed Apr 12, 2024
1 parent 663a02d commit 2977d7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/pkg/memberlist_manager/memberlist_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,23 +171,23 @@ func TestMemberlistManager(t *testing.T) {
// Get the memberlist
retryUntilCondition(t, func() bool {
return getMemberlistAndCompare(t, memberlistStore, Memberlist{"10.0.0.49"})
}, 10, 1*time.Second)
}, 30, 1*time.Second)

// Add another ready pod
createFakePod("10.0.0.50", clientset)

// Get the memberlist
retryUntilCondition(t, func() bool {
return getMemberlistAndCompare(t, memberlistStore, Memberlist{"10.0.0.49", "10.0.0.50"})
}, 10, 1*time.Second)
}, 30, 1*time.Second)

// Delete a pod
deleteFakePod("10.0.0.49", clientset)

// Get the memberlist
retryUntilCondition(t, func() bool {
return getMemberlistAndCompare(t, memberlistStore, Memberlist{"10.0.0.50"})
}, 10, 1*time.Second)
}, 30, 1*time.Second)
}

func TestMemberlistSame(t *testing.T) {
Expand Down

0 comments on commit 2977d7a

Please sign in to comment.