Skip to content

Commit

Permalink
removing ineffectual assignments
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Dec 7, 2023
1 parent d9e960f commit 51ac258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signer/fulcio/fulcio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ func TestSigner(t *testing.T) {
tp := filepath.Join(rootDir, "hack", "test.token")

provider = New(WithFulcioURL(fmt.Sprintf("http://%v:%v", hostname, port)), WithTokenPath(tp))
signer, err = provider.Signer(ctx)
_, err = provider.Signer(ctx)
require.NoError(t, err)

// Test signer with both token read from file and raw token
provider = New(WithFulcioURL(fmt.Sprintf("http://%v:%v", hostname, port)), WithTokenPath(tp), WithToken(token))
signer, err = provider.Signer(ctx)
_, err = provider.Signer(ctx)
require.ErrorContains(t, err, "only one of --fulcio-token-path or --fulcio-raw-token can be used")
}

Expand Down

0 comments on commit 51ac258

Please sign in to comment.