Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
corteza
corteza-server
Commits
90fcf428
Commit
90fcf428
authored
4 years ago
by
Denis Arh
Browse files
Options
Download
Email Patches
Plain Diff
Fix broken tests after
e0b09449
parent
df690928
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
compose/encoder/record_test.go
compose/encoder/record_test.go
+2
-2
compose/types/record_test.go
compose/types/record_test.go
+0
-1
No files found.
compose/encoder/record_test.go
View file @
90fcf428
...
...
@@ -67,7 +67,7 @@ func Test_RecordEncoding(t *testing.T) {
buf
:=
bytes
.
NewBuffer
([]
byte
{})
csvWriter
:=
csv
.
NewWriter
(
buf
)
fenc
:=
NewFlatWriter
(
csvWriter
,
true
,
nil
,
tt
.
ff
...
)
fenc
:=
NewFlatWriter
(
csvWriter
,
true
,
nil
,
"UTC"
,
tt
.
ff
...
)
for
_
,
r
:=
range
tt
.
rr
{
if
err
:=
fenc
.
Record
(
r
);
err
!=
nil
{
t
.
Errorf
(
"unexpected error = %v,"
,
err
)
...
...
@@ -86,7 +86,7 @@ func Test_RecordEncoding(t *testing.T) {
buf
:=
bytes
.
NewBuffer
([]
byte
{})
jsonEnc
:=
json
.
NewEncoder
(
buf
)
senc
:=
NewStructuredEncoder
(
jsonEnc
,
nil
,
tt
.
ff
...
)
senc
:=
NewStructuredEncoder
(
jsonEnc
,
nil
,
"UTC"
,
tt
.
ff
...
)
for
_
,
r
:=
range
tt
.
rr
{
if
err
:=
senc
.
Record
(
r
);
err
!=
nil
{
t
.
Errorf
(
"unexpected error = %v,"
,
err
)
...
...
This diff is collapsed.
Click to expand it.
compose/types/record_test.go
View file @
90fcf428
...
...
@@ -6,7 +6,6 @@ import (
"testing"
"time"
"github.com/davecgh/go-spew/spew"
"github.com/stretchr/testify/require"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment