mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-27 10:53:44 +02:00
internal/api/atomicasset.go: Support host parameter.
This commit is contained in:
parent
f0ab79ef06
commit
59399c7cf4
3 changed files with 18 additions and 15 deletions
|
|
@ -80,7 +80,7 @@ func TestParseRequest_AntelopeV2Full(t *testing.T) {
|
|||
// --------------------------------
|
||||
|
||||
func TestParseRequest_AtomicAsset(t *testing.T) {
|
||||
expected := api.NewAtomicAsset("http://api.atomicassets.io", 5)
|
||||
expected := api.NewAtomicAsset("http://api.atomicassets.io", "", 5)
|
||||
|
||||
api, err := ParseRequest("atomic|http://api.atomicassets.io")
|
||||
assert.NoError(t, err)
|
||||
|
|
@ -88,7 +88,7 @@ func TestParseRequest_AtomicAsset(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestParseRequest_AtomicAssetWithBlockTime(t *testing.T) {
|
||||
expected := api.NewAtomicAsset("http://api.atomicassets.io", 256)
|
||||
expected := api.NewAtomicAsset("http://api.atomicassets.io", "", 256)
|
||||
|
||||
api, err := ParseRequest("atomic|http://api.atomicassets.io|512")
|
||||
assert.NoError(t, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue