mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
orchestrator/clickhouse: simplify use of QueryRow()
No need to check for errors, this is also done when invoking Scan().
This commit is contained in:
@@ -106,7 +106,6 @@ func TestFlowRate(t *testing.T) {
|
||||
|
||||
ctrl := gomock.NewController(t)
|
||||
mockRow := mocks.NewMockRow(ctrl)
|
||||
mockRow.EXPECT().Err().Return(nil)
|
||||
mockRow.EXPECT().Scan(gomock.Any()).SetArg(0, float64(100.1)).Return(nil)
|
||||
mockConn.EXPECT().
|
||||
QueryRow(gomock.Any(),
|
||||
|
||||
Reference in New Issue
Block a user