Skip to content

Commit

Permalink
fix(misc): outdated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Jan 7, 2025
1 parent e89df64 commit cbeb583
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ More examples of usage can be found in [`example`](https://github.com/blockfrost

## Developing

Set `BLOCKFROST_PROJECT_ID` env variable:

```
export BLOCKFROST_PROJECT_ID=<MAINNET_TOKEN>
```

To run specific test:

```
Expand All @@ -116,6 +122,12 @@ To run all tests:
make test
```

To generate missing .golden file

```
go test -gen
```

## License

Licensed under the [Apache License 2.0](https://opensource.org/licenses/Apache-2.0), see [`LICENSE`](https://github.com/blockfrost/blockfrost-go/blob/master/LICENSE)
2 changes: 1 addition & 1 deletion api_addresses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestAddressExtendedUnMarshall(t *testing.T) {
}

fp := filepath.Join(testdata, "json", "address", "address_extended.json")
got := blockfrost.AddressDetails{}
got := blockfrost.AddressExtended{}
testStructGotWant(t, fp, &got, &want)
}

Expand Down
2 changes: 1 addition & 1 deletion testdata/transactionevaluateintegration.golden
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"type":"jsonwsp/response","version":"1.0","servicename":"ogmios","methodname":"EvaluateTx","reflection":{"id":"dummy"},"result":{"EvaluationResult":{"spend:0":{"memory":1765011,"steps":503871230}}}}
{"type":"jsonwsp/response","version":"1.0","servicename":"ogmios","methodname":"EvaluateTx","reflection":{"id":"dummy"},"result":{"EvaluationResult":{"spend:0":{"memory":1765011,"steps":384791603}}}}

0 comments on commit cbeb583

Please sign in to comment.