Skip to content

Commit

Permalink
Fix duplicated mock server
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Mar 26, 2024
1 parent a7dd3d5 commit 8adf997
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions director/director_ui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func TestListServers(t *testing.T) {
func() {
serverAdMutex.Lock()
defer serverAdMutex.Unlock()
serverAds.DeleteAll()
serverAds.Set(mockOriginServerAd, mockNamespaceAds(5, "origin1"), ttlcache.DefaultTTL)
serverAds.Set(mockCacheServerAd, mockNamespaceAds(4, "cache1"), ttlcache.DefaultTTL)
require.True(t, serverAds.Has(mockOriginServerAd))
Expand Down

0 comments on commit 8adf997

Please sign in to comment.