File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,10 @@ func TestCiphersBackwardCompatibility(t *testing.T) {
100100// 3. Copy the value from the test output and do what you need with it.
101101func TestHelpMeEncryptSomeValue (t * testing.T ) {
102102 t .Parallel ()
103- t .Skip ("this only exists if you need to encrypt a value with dbcrypt, it does not actually test anything" )
104-
105103 valueToEncrypt := os .Getenv ("ENCRYPT_ME" )
104+ if valueToEncrypt == "" {
105+ t .Skip ("Set ENCRYPT_ME to some value you need to encrypt" )
106+ }
106107 t .Logf ("valueToEncrypt: %q" , valueToEncrypt )
107108 keys := os .Getenv ("CODER_EXTERNAL_TOKEN_ENCRYPTION_KEYS" )
108109 require .NotEmpty (t , keys , "Set the CODER_EXTERNAL_TOKEN_ENCRYPTION_KEYS environment variable to use this" )
You can’t perform that action at this time.
0 commit comments