Skip to content

Commit 0790808

Browse files
committed
Move skip to common location
1 parent a330ae2 commit 0790808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/configtls/tpm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333
)
3434

3535
func TestTPM_loadCertificate(t *testing.T) {
36-
testutil.SkipIfFIPSOnly(t, "use of CFB is not allowed in FIPS 140-only mode")
3736
tpm, err := simulator.OpenSimulator()
3837
require.NoError(t, err)
3938
defer tpm.Close()
@@ -191,6 +190,7 @@ func TestTPM_open(t *testing.T) {
191190
}
192191

193192
func createTPMKeyCert(t *testing.T, tpm transport.TPMCloser) ([]byte, []byte) {
193+
testutil.SkipIfFIPSOnly(t, "use of CFB is not allowed in FIPS 140-only mode")
194194
tpmKey, err := keyfile.NewLoadableKey(tpm, tpm2.TPMAlgECC, 256, []byte(""))
195195
require.NoError(t, err)
196196
tpmKeySigner, err := tpmKey.Signer(tpm, []byte(""), []byte(""))

0 commit comments

Comments
 (0)