From fed5d5f0b8454497dd894d9fa5621e3896b996f9 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 13 Apr 2023 16:18:11 +0800 Subject: [PATCH] maxapi: add more market info assertion --- pkg/exchange/max/maxapi/public_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/exchange/max/maxapi/public_test.go b/pkg/exchange/max/maxapi/public_test.go index 592ba25a6..cf2c20803 100644 --- a/pkg/exchange/max/maxapi/public_test.go +++ b/pkg/exchange/max/maxapi/public_test.go @@ -32,6 +32,11 @@ func TestPublicService(t *testing.T) { if assert.NotEmpty(t, markets) { assert.NotZero(t, markets[0].MinBaseAmount) assert.NotZero(t, markets[0].MinQuoteAmount) + assert.NotEmpty(t, markets[0].Name) + assert.NotEmpty(t, markets[0].ID) + assert.NotEmpty(t, markets[0].BaseUnit) + assert.NotEmpty(t, markets[0].QuoteUnit) + t.Logf("%+v", markets[0]) } })