Skip to content

Commit 9ec433f

Browse files
committed
fix service cli test
1 parent a4eba0f commit 9ec433f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cli/service_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ func TestIrisCLIService(t *testing.T) {
168168
caStr += fmt.Sprintf(" --fee=%s", "0.004iris")
169169
caStr += fmt.Sprintf(" --from=%s", "bar")
170170
_, outString, _ := executeWriteRetStdStreams(t, caStr, v0.DefaultKeyPass)
171-
var digitsRegexp = regexp.MustCompile(`\"request-id\": \".*\"`)
171+
var digitsRegexp = regexp.MustCompile(`\"key\": \"request-id\",\n \"value\": \".*\"`)
172172
requestTag := string(digitsRegexp.Find([]byte(outString)))
173-
requestId := strings.TrimSpace(strings.Split(requestTag, ":")[1])
173+
requestId := strings.TrimSpace(strings.Split(requestTag, ":")[2])
174174
requestId = requestId[1 : len(requestId)-1]
175175
tests.WaitForNextNBlocksTM(2, port)
176176

0 commit comments

Comments
 (0)