mirror of https://github.com/hashicorp/consul
Reset root prune interval after TestLeader_CARootPruning completes
#10645 Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>pull/10705/head
parent
91c90a672a
commit
ff9700b068
|
@ -1177,7 +1177,12 @@ func TestLeader_CARootPruning(t *testing.T) {
|
|||
}
|
||||
|
||||
// Can not use t.Parallel(), because this modifies a global.
|
||||
origPruneInterval := caRootPruneInterval
|
||||
caRootPruneInterval = 200 * time.Millisecond
|
||||
t.Cleanup(func() {
|
||||
// Reset the value of the global prune interval so that it doesn't affect other tests
|
||||
caRootPruneInterval = origPruneInterval
|
||||
})
|
||||
|
||||
require := require.New(t)
|
||||
dir1, s1 := testServer(t)
|
||||
|
|
Loading…
Reference in New Issue