1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: fix a test message index bug on VTEST_SHOW_START=1

This commit is contained in:
Delyan Angelov 2021-01-25 17:58:01 +02:00
parent 21ba0470af
commit 9d1d35ebdc
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -65,7 +65,9 @@ pub fn (mut ts TestSession) print_messages() {
ts.nprint_ended <- 0
return
}
ts.nmessage_idx++
if rmessage.kind != .info {
ts.nmessage_idx++
}
msg := rmessage.message.replace_each([
'TMP1',
'${ts.nmessage_idx:1d}',