Skip to content

Commit

Permalink
Variables test: fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya <[email protected]>
  • Loading branch information
rihter007 committed Jun 21, 2022
1 parent 555cf8e commit 0380b8a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/teststeps/variables/variables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ func TestValidateParameters(t *testing.T) {
require.NoError(t, obj.ValidateParameters(xcontext.Background(), test.TestStepParameters{
"var1": []test.Param{
{
json.RawMessage("123"),
RawMessage: json.RawMessage("123"),
},
},
}))
// invalid variable name
require.Error(t, obj.ValidateParameters(xcontext.Background(), test.TestStepParameters{
"var var": []test.Param{
{
json.RawMessage("123"),
RawMessage: json.RawMessage("123"),
},
},
}))
// invalid value
require.Error(t, obj.ValidateParameters(xcontext.Background(), test.TestStepParameters{
"var1": []test.Param{
{
json.RawMessage("ALALALALA[}"),
RawMessage: json.RawMessage("ALALALALA[}"),
},
},
}))
Expand Down Expand Up @@ -84,17 +84,17 @@ func TestVariablesEmission(t *testing.T) {
state, err := obj.Run(ctx, test.TestStepChannels{In: in, Out: out}, ev, svm, test.TestStepParameters{
"str_variable": []test.Param{
{
json.RawMessage("\"dummy\""),
RawMessage: json.RawMessage("\"dummy\""),
},
},
"int_variable": []test.Param{
{
json.RawMessage("123"),
RawMessage: json.RawMessage("123"),
},
},
"complex_variable": []test.Param{
{
json.RawMessage("{\"name\":\"value\"}"),
RawMessage: json.RawMessage("{\"name\":\"value\"}"),
},
},
}, nil)
Expand Down

0 comments on commit 0380b8a

Please sign in to comment.