mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-16 04:44:55 +02:00
internal/server/parse_request_test.go: Adding AtomicAssetWithHost test.
This commit is contained in:
parent
59399c7cf4
commit
afd79110f9
1 changed files with 8 additions and 0 deletions
|
|
@ -95,6 +95,14 @@ func TestParseRequest_AtomicAssetWithBlockTime(t *testing.T) {
|
|||
assert.Equal(t, expected.LogInfo(), api.LogInfo())
|
||||
}
|
||||
|
||||
func TestParseRequest_AtomicAssetWithHost(t *testing.T) {
|
||||
expected := api.NewAtomicAsset("http://api.atomicassets.io", "some.other.host", 256)
|
||||
|
||||
api, err := ParseRequest("atomic|http://api.atomicassets.io|512|some.other.host")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, expected.LogInfo(), api.LogInfo())
|
||||
}
|
||||
|
||||
func TestParseRequest_DebugApi(t *testing.T) {
|
||||
expected := api.NewDebugApi("some_api_call")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue