Skip to content

Commit 48cda85

Browse files
authored
Merge pull request #8 from theseion/more-changes
fix: use uint for (no_)expect_ids
2 parents ba047e4 + d095995 commit 48cda85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

types/examples.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ var (
5050
ExpectError: helpers.BoolPtr(true),
5151
}
5252
ExampleLog = Log{
53-
ExpectIds: []int{123456},
54-
NoExpectIds: []int{123456},
53+
ExpectIds: []uint{123456},
54+
NoExpectIds: []uint{123456},
5555
MatchRegex: `id[:\s"]*123456`,
5656
NoMatchRegex: `id[:\s"]*123456`,
5757
}

types/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,13 @@ type Log struct {
341341
// Expect the given IDs to be contained in the log output.
342342
// examples:
343343
// -value: ExampleLog.ExpectIds
344-
ExpectIds []int `yaml:"expect_ids,omitempty"`
344+
ExpectIds []uint `yaml:"expect_ids,omitempty"`
345345

346346
// description: |
347347
// Expect the given IDs _not_ to be contained in the log output.
348348
// examples:
349349
// - value: ExampleLog.NoExpectIds
350-
NoExpectIds []int `yaml:"no_expect_ids,omitempty"`
350+
NoExpectIds []uint `yaml:"no_expect_ids,omitempty"`
351351

352352
// description: |
353353
// Expect the regular expression to match log content for the current types.

0 commit comments

Comments
 (0)