Skip to content

Commit

Permalink
chore(clickhouse): fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
yquansah committed Feb 3, 2024
1 parent 7ad06a3 commit 9d02a3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions internal/server/analytics/clickhouse/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ func TestGetStepFromDuration(t *testing.T) {
name: "1 hour duration",
duration: time.Hour,
want: &Step{
intervalValue: 15,
intervalStep: "SECOND",
intervalValue: 1,
intervalStep: "MINUTE",
},
},
{
Expand Down
8 changes: 4 additions & 4 deletions internal/server/middleware/grpc/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func TestEvaluationUnaryInterceptor_Noop(t *testing.T) {
}
)

got, err := EvaluationUnaryInterceptor(context.Background(), req, info, handler)
got, err := EvaluationUnaryInterceptor(false)(context.Background(), req, info, handler)
require.NoError(t, err)

assert.NotNil(t, got)
Expand Down Expand Up @@ -273,7 +273,7 @@ func TestEvaluationUnaryInterceptor_Evaluation(t *testing.T) {
}
)

got, err := EvaluationUnaryInterceptor(context.Background(), test.req, info, handler)
got, err := EvaluationUnaryInterceptor(false)(context.Background(), test.req, info, handler)
require.NoError(t, err)

assert.NotNil(t, got)
Expand Down Expand Up @@ -322,7 +322,7 @@ func TestEvaluationUnaryInterceptor_BatchEvaluation(t *testing.T) {
}
)

got, err := EvaluationUnaryInterceptor(context.Background(), req, info, handler)
got, err := EvaluationUnaryInterceptor(false)(context.Background(), req, info, handler)
require.NoError(t, err)

assert.NotNil(t, got)
Expand All @@ -345,7 +345,7 @@ func TestEvaluationUnaryInterceptor_BatchEvaluation(t *testing.T) {
},
}

got, err = EvaluationUnaryInterceptor(context.Background(), req, info, handler)
got, err = EvaluationUnaryInterceptor(false)(context.Background(), req, info, handler)
require.NoError(t, err)

assert.NotNil(t, got)
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/flags/analytics/Analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSelector } from 'react-redux';
import { useOutletContext } from 'react-router-dom';
import Combobox from '~/components/forms/Combobox';
import 'chartjs-adapter-date-fns';
import { add, addMinutes, format, parseISO } from 'date-fns';
import { addMinutes, format, parseISO } from 'date-fns';
import { selectCurrentNamespace } from '~/app/namespaces/namespacesSlice';
import { IFlag } from '~/types/Flag';
import { BarGraph } from '~/components/graphs';
Expand Down

0 comments on commit 9d02a3f

Please sign in to comment.