dmwm / dbs2go

DBS server written in Go
MIT License
5 stars 4 forks source link

Fix string formats in test-integration #17

Closed vkuznet closed 2 years ago

vkuznet commented 2 years ago

Once we merged #13 I observed that test-integration output is malformed for some printout, e.g.

2022/03/25 07:13:48 intergration_test.go:141: Received: [map[data_type:test primary_ds_type_id:%!s(float64=1)]]
Expected: [{test %!s(int64=1)}]

It basically means that somewhere in printf statements were used wrong format identified, e.g. %s while the passed value may be a different type. I suggest to change this to generic format identifier %v or %+v to fix this issue.