Skip to content

Commit

Permalink
#81 - fix sporadically failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
meiserloh committed Oct 29, 2024
1 parent b697b9c commit cf251c8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkg/domain/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,11 @@ func TestConfig_GetDogusWithChangedConfig(t *testing.T) {
}
}

assert.Equal(t, tt.want, config.GetDogusWithChangedConfig())
changedDogus := config.GetDogusWithChangedConfig()
assert.Len(t, changedDogus, len(tt.want))
for _, wantedVal := range tt.want {
assert.Contains(t, changedDogus, wantedVal)
}
})
}
}
Expand Down Expand Up @@ -556,7 +560,11 @@ func TestConfig_GetDogusWithChangedSensitiveConfig(t *testing.T) {
}
}

assert.Equal(t, tt.want, config.GetDogusWithChangedSensitiveConfig())
changedDogus := config.GetDogusWithChangedSensitiveConfig()
assert.Len(t, changedDogus, len(tt.want))
for _, wantedVal := range tt.want {
assert.Contains(t, changedDogus, wantedVal)
}
})
}
}

0 comments on commit cf251c8

Please sign in to comment.