Skip to content

Commit

Permalink
#81 fix flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-dammeier committed Oct 30, 2024
1 parent 34fd545 commit 65f4898
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pkg/domain/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,12 @@ func TestConfig_GetDogusWithChangedConfig(t *testing.T) {
}
}

assert.Equal(t, tt.want, config.GetDogusWithChangedConfig())
result := config.GetDogusWithChangedConfig()

assert.Equal(t, len(tt.want), len(result))
for _, doguName := range tt.want {
assert.Contains(t, result, doguName)
}
})
}
}
Expand Down Expand Up @@ -556,7 +561,12 @@ func TestConfig_GetDogusWithChangedSensitiveConfig(t *testing.T) {
}
}

assert.Equal(t, tt.want, config.GetDogusWithChangedSensitiveConfig())
result := config.GetDogusWithChangedSensitiveConfig()

assert.Equal(t, len(tt.want), len(result))
for _, doguName := range tt.want {
assert.Contains(t, result, doguName)
}
})
}
}

0 comments on commit 65f4898

Please sign in to comment.