Skip to content

Commit

Permalink
fix panic at the testo
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Oct 18, 2023
1 parent 8dc67aa commit 75dd200
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nomad/encrypter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ func (s *mockSigner) SignClaims(c *structs.IdentityClaims) (token, keyID string,
func TestEncrypter_LoadSave(t *testing.T) {
ci.Parallel(t)

srv, cleanupSrv := TestServer(t, func(c *Config) {
c.NumSchedulers = 0
})
t.Cleanup(cleanupSrv)

tmpDir := t.TempDir()
encrypter, err := NewEncrypter(&Server{shutdownCtx: context.Background()}, tmpDir)
encrypter, err := NewEncrypter(srv, tmpDir)
require.NoError(t, err)

algos := []structs.EncryptionAlgorithm{
Expand Down

1 comment on commit 75dd200

@brokep

This comment was marked as spam.

Please sign in to comment.