Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Nov 13, 2023
1 parent 34eb1c7 commit d96b5f9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 3 additions & 5 deletions blockchain/flowkit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ package blockchain

import (
"context"
"fmt"
"testing"

"github.com/onflow/flow-cli/flowkit/accounts"
"github.com/onflow/flow-go-sdk"
"github.com/stretchr/testify/assert"
"testing"
)

// Test_NewEmulator tests creating a large number of new accounts and validates corresponding storage addresses
Expand Down Expand Up @@ -89,12 +89,10 @@ func Test_FlowJsonExport(t *testing.T) {
const Networks = `"networks": {
"emulator": "127.0.0.1:3569",
"mainnet": "access.mainnet.nodes.onflow.org:9000",
"sandboxnet": "access.sandboxnet.nodes.onflow.org:9000",
"testing": "127.0.0.1:3569",
"testnet": "access.devnet.nodes.onflow.org:9000"
}`

fmt.Println(flowJson)

assert.Contains(t, flowJson, FungibleToken)
assert.Contains(t, flowJson, Networks)

Expand Down
11 changes: 6 additions & 5 deletions e2eTest/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
package e2eTest

import (
"strconv"
"testing"
"time"

"github.com/dapperlabs/flow-playground-api/e2eTest/client"
"github.com/dapperlabs/flow-playground-api/model"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"strconv"
"testing"
"time"
)

func TestProjects(t *testing.T) {
Expand Down Expand Up @@ -559,10 +560,10 @@ func TestExportFlowJson(t *testing.T) {
)
require.NoError(t, err)

const Networks = `"networks": {
const Networks = ` "networks": {
"emulator": "127.0.0.1:3569",
"mainnet": "access.mainnet.nodes.onflow.org:9000",
"sandboxnet": "access.sandboxnet.nodes.onflow.org:9000",
"testing": "127.0.0.1:3569",
"testnet": "access.devnet.nodes.onflow.org:9000"
}`

Expand Down
4 changes: 3 additions & 1 deletion server/dummy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

package main

import "github.com/btcsuite/btcd/chaincfg/chainhash"
import (
"github.com/btcsuite/btcd/chaincfg/chainhash"
)

// this is added to resolve the issue with chainhash ambiguous import,
// the code is not used, but it's needed to force go.mod specify and retain chainhash version
Expand Down

0 comments on commit d96b5f9

Please sign in to comment.