mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-16 04:44:55 +02:00
internal/api/atomicasset_test.go: Add LogInfoWithHost test
This commit is contained in:
parent
0448ea4781
commit
6b561bdf25
1 changed files with 8 additions and 0 deletions
|
|
@ -32,6 +32,14 @@ func TestAtomicAsset_LogInfo(t *testing.T) {
|
|||
assert.Equal(t, expected, api.LogInfo())
|
||||
}
|
||||
|
||||
func TestAtomicAsset_LogInfoWithHost(t *testing.T) {
|
||||
api := NewAtomicAsset("https://atomic.example.com", "some.other.host", 120)
|
||||
|
||||
expected := LogParams{"type", "atomicasset", "url", "https://atomic.example.com", "block_time", float64(120), "host", "some.other.host"}
|
||||
|
||||
assert.Equal(t, expected, api.LogInfo())
|
||||
}
|
||||
|
||||
func TestAtomicAsset_SetTime(t *testing.T) {
|
||||
expected := time.Date(2019, 3, 18, 20, 29, 32, 0, time.UTC)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue