Skip to content

Commit 58019c3

Browse files
committed
rebase
1 parent a726174 commit 58019c3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

create_mode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestParseCreateMode(t *testing.T) {
2222
for _, tt := range changeDetectorTests {
2323
t.Run(tt.name, func(t *testing.T) {
2424
cm, err := parseCreateMode(tt.flag)
25-
requireNoError(t, err)
25+
requireNoErrorf(t, err)
2626
if cm.toFlag() != tt.wantIntValue {
2727
// change detector test for enum values.
2828
t.Fatalf("createmode value of flag; want: %v, got: %v", cm.toFlag(), tt.wantIntValue)

zk_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ func TestIntegration_CreateTTL(t *testing.T) {
136136
const testPath = "/ttl_znode_tests"
137137
// create sub node to create per test in avoiding using the root path.
138138
_, err = zk.Create(testPath, nil /* data */, FlagPersistent, WorldACL(PermAll))
139-
requireNoError(t, err)
139+
requireNoErrorf(t, err)
140140

141141
for idx, tt := range tests {
142142
t.Run(tt.name, func(t *testing.T) {
143143
path := filepath.Join(testPath, fmt.Sprint(idx))
144144
_, err := zk.CreateTTL(path, []byte{12}, tt.createFlags, WorldACL(PermAll), tt.giveDuration)
145145
if tt.wantErr == "" {
146-
requireNoError(t, err, fmt.Sprintf("error not expected: path; %q; flags %v", path, tt.createFlags))
146+
requireNoErrorf(t, err, fmt.Sprintf("error not expected: path; %q; flags %v", path, tt.createFlags))
147147
return
148148
}
149149

@@ -223,14 +223,14 @@ func TestIntegration_CreateContainer(t *testing.T) {
223223
const testPath = "/container_test_znode"
224224
// create sub node to create per test in avoiding using the root path.
225225
_, err = zk.Create(testPath, nil /* data */, FlagPersistent, WorldACL(PermAll))
226-
requireNoError(t, err)
226+
requireNoErrorf(t, err)
227227

228228
for idx, tt := range tests {
229229
t.Run(tt.name, func(t *testing.T) {
230230
path := filepath.Join(testPath, fmt.Sprint(idx))
231231
_, err := zk.CreateContainer(path, []byte{12}, tt.createFlags, WorldACL(PermAll))
232232
if tt.wantErr == "" {
233-
requireNoError(t, err, fmt.Sprintf("error not expected: path; %q; flags %v", path, tt.createFlags))
233+
requireNoErrorf(t, err, fmt.Sprintf("error not expected: path; %q; flags %v", path, tt.createFlags))
234234
return
235235
}
236236

0 commit comments

Comments
 (0)