Skip to content

Commit b859803

Browse files
author
Zachary Scott
authored
Merge pull request #3 from CircleCI-Public/enable-query-test
Re-enable query test and fix it
2 parents 3c8a318 + d6897de commit b859803

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cmd/query_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ var _ = Describe("Query", func() {
7777
}
7878
}
7979
`
80+
8081
server.AppendHandlers(
8182
ghttp.CombineHandlers(
8283
ghttp.VerifyRequest("POST", "/"),
@@ -96,7 +97,7 @@ var _ = Describe("Query", func() {
9697
Expect(err).ShouldNot(HaveOccurred())
9798
session.Wait()
9899
Eventually(session.Err.Contents()).Should(BeEmpty())
99-
//Eventually(session.Out.Contents()).Should(MatchJSON(responseData))
100+
Eventually(session.Out.Contents()).Should(MatchJSON(responseData))
100101
Eventually(session).Should(gexec.Exit(0))
101102
})
102103
})

logger/logger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ func (l *Logger) FatalOnError(msg string, err error) {
7373
}
7474
}
7575

76-
// Prettyify accepts a map fo data and pretty prints it.
76+
// Prettyify accepts a map of data and pretty prints it.
7777
// It's using json.MarshalIndent and printing with log.Logger.Infoln
78-
func (l *Logger) Prettyify(data ...interface{}) {
78+
func (l *Logger) Prettyify(data map[string]interface{}) {
7979
bytes, err := json.MarshalIndent(data, "", " ")
8080
if err != nil {
8181
l.error.Fatalln(err)

0 commit comments

Comments
 (0)