Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit cdb0937

Browse files
committed
query_result: test returned date with non-zero microseconds
Signed-off-by: Radim Hrazdil <[email protected]>
1 parent 543d42f commit cdb0937

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

platform/model/query_result_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ package model
44

55
import (
66
"context"
7-
"github.com/QuesmaOrg/quesma/platform/util"
87
"strconv"
98
"testing"
109
"time"
10+
11+
"github.com/QuesmaOrg/quesma/platform/util"
1112
)
1213

1314
func TestQueryResultCol_String(t *testing.T) {
@@ -33,6 +34,7 @@ func TestQueryResultCol_String(t *testing.T) {
3334
value any
3435
expected string
3536
}{
37+
{time.Date(2023, 10, 5, 14, 30, 45, 123456000, time.UTC), `"name": "2023-10-05 14:30:45.123456 +0000 UTC"`},
3638
{"test", `"name": "test"`},
3739
{`test "GET"`, `"name": "test \"GET\""`},
3840
{1, `"name": 1`},

0 commit comments

Comments
 (0)