mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-07 22:42:22 -04:00
AB#2033 User-friendly wrap and reword errors
fix: readOrGenerated function signature
This commit is contained in:
parent
9441e46e4b
commit
1e11188dac
10 changed files with 61 additions and 56 deletions
|
@ -414,7 +414,7 @@ func TestReadOrGenerateVPNKey(t *testing.T) {
|
|||
assert.NotEmpty(pubK)
|
||||
}
|
||||
|
||||
func TestReadOrGeneratedMasterSecret(t *testing.T) {
|
||||
func TestReadOrGenerateMasterSecret(t *testing.T) {
|
||||
testCases := map[string]struct {
|
||||
filename string
|
||||
filecontent string
|
||||
|
@ -484,7 +484,7 @@ func TestReadOrGeneratedMasterSecret(t *testing.T) {
|
|||
}
|
||||
|
||||
var out bytes.Buffer
|
||||
secret, err := readOrGeneratedMasterSecret(&out, fileHandler, tc.filename)
|
||||
secret, err := readOrGenerateMasterSecret(&out, fileHandler, tc.filename)
|
||||
|
||||
if tc.wantErr {
|
||||
assert.Error(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue