Skip to content

Commit

Permalink
fix remaining linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthpun committed Feb 3, 2024
1 parent d8b07aa commit c4fbb9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/json/dependency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func Test_TransformDependenciesToJSON(t *testing.T) {
assert.NoError(t, err)

contracts, err := jsonContracts.transformToConfig()
assert.NoError(t, err)
dependencies, err := jsonDependencies.transformToConfig()
assert.NoError(t, err)

Expand Down
4 changes: 2 additions & 2 deletions flowkit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ func TestAccountsCreate_Integration(t *testing.T) {

type accountsOut struct {
address string
code map[string][]byte
balance uint64
pubKeys []crypto.PublicKey
weights []int
Expand Down Expand Up @@ -450,7 +449,7 @@ func TestAccountsAddContract_Integration(t *testing.T) {
require.NotNil(t, acc)
assert.Equal(t, acc.Contracts["Simple"], tests.ContractSimple.Source)

ID, _, err = flowkit.AddContract(
_, _, err = flowkit.AddContract(
ctx,
srvAcc,
resourceToContract(tests.ContractSimpleUpdated),
Expand Down Expand Up @@ -1306,6 +1305,7 @@ func TestProject_Integration(t *testing.T) {
assert.Len(t, contracts, 3)

account, err := flowkit.GetAccount(ctx, srvAcc.Address)
assert.NoError(t, err)

for i, c := range testContracts {
code, exists := account.Contracts[c.Name]
Expand Down
1 change: 1 addition & 0 deletions project/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func TestContractDeploymentOrder(t *testing.T) {
}

deployment, err := NewDeployment(contracts, nil)
assert.NoError(t, err)

contracts, err = deployment.Sort()
if !strings.Contains(testCase.name, "unresolved") && !strings.Contains(testCase.name, "cycle") {
Expand Down

0 comments on commit c4fbb9b

Please sign in to comment.