1
0
Fork 0
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:
Henrik Hautakoski 2023-02-07 08:38:51 +01:00
parent 59399c7cf4
commit afd79110f9
No known key found for this signature in database
GPG key ID: 217490840C18A5D9

View file

@ -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")