@@ -36,34 +36,40 @@ func Test_Results(t *testing.T) {
36
36
TotalFail :2 ,
37
37
Runs :map [string ]harness.RunResult {
38
38
"test-0/0" : {
39
- FullID :"test-0/0" ,
40
- TestName :"test-0" ,
41
- ID :"0" ,
42
- Logs :"test-0/0 log line 1\n test-0/0 log line 2" ,
43
- Error :xerrors .New ("test-0/0 error" ),
44
- StartedAt :now ,
45
- Duration :httpapi .Duration (time .Second ),
46
- DurationMS :1000 ,
39
+ FullID :"test-0/0" ,
40
+ TestName :"test-0" ,
41
+ ID :"0" ,
42
+ Logs :"test-0/0 log line 1\n test-0/0 log line 2" ,
43
+ Error :xerrors .New ("test-0/0 error" ),
44
+ StartedAt :now ,
45
+ Duration :httpapi .Duration (time .Second ),
46
+ DurationMS :1000 ,
47
+ TotalBytesRead :1024 ,
48
+ TotalBytesWritten :2048 ,
47
49
},
48
50
"test-0/1" : {
49
- FullID :"test-0/1" ,
50
- TestName :"test-0" ,
51
- ID :"1" ,
52
- Logs :"test-0/1 log line 1\n test-0/1 log line 2" ,
53
- Error :nil ,
54
- StartedAt :now .Add (333 * time .Millisecond ),
55
- Duration :httpapi .Duration (time .Second ),
56
- DurationMS :1000 ,
51
+ FullID :"test-0/1" ,
52
+ TestName :"test-0" ,
53
+ ID :"1" ,
54
+ Logs :"test-0/1 log line 1\n test-0/1 log line 2" ,
55
+ Error :nil ,
56
+ StartedAt :now .Add (333 * time .Millisecond ),
57
+ Duration :httpapi .Duration (time .Second ),
58
+ DurationMS :1000 ,
59
+ TotalBytesRead :512 ,
60
+ TotalBytesWritten :1024 ,
57
61
},
58
62
"test-0/2" : {
59
- FullID :"test-0/2" ,
60
- TestName :"test-0" ,
61
- ID :"2" ,
62
- Logs :"test-0/2 log line 1\n test-0/2 log line 2" ,
63
- Error :testError {hidden :xerrors .New ("test-0/2 error" )},
64
- StartedAt :now .Add (666 * time .Millisecond ),
65
- Duration :httpapi .Duration (time .Second ),
66
- DurationMS :1000 ,
63
+ FullID :"test-0/2" ,
64
+ TestName :"test-0" ,
65
+ ID :"2" ,
66
+ Logs :"test-0/2 log line 1\n test-0/2 log line 2" ,
67
+ Error :testError {hidden :xerrors .New ("test-0/2 error" )},
68
+ StartedAt :now .Add (666 * time .Millisecond ),
69
+ Duration :httpapi .Duration (time .Second ),
70
+ DurationMS :1000 ,
71
+ TotalBytesRead :2048 ,
72
+ TotalBytesWritten :4096 ,
67
73
},
68
74
},
69
75
Elapsed :httpapi .Duration (time .Second ),
@@ -109,6 +115,8 @@ Test results:
109
115
"started_at": "2023-10-05T12:03:56.395813665Z",
110
116
"duration": "1s",
111
117
"duration_ms": 1000,
118
+ "total_bytes_read": 1024,
119
+ "total_bytes_written": 2048,
112
120
"error": "test-0/0 error:\n github.com/coder/coder/v2/scaletest/harness_test.Test_Results\n [working_directory]/results_test.go:43"
113
121
},
114
122
"test-0/1": {
@@ -119,6 +127,8 @@ Test results:
119
127
"started_at": "2023-10-05T12:03:56.728813665Z",
120
128
"duration": "1s",
121
129
"duration_ms": 1000,
130
+ "total_bytes_read": 512,
131
+ "total_bytes_written": 1024,
122
132
"error": "\u003cnil\u003e"
123
133
},
124
134
"test-0/2": {
@@ -129,6 +139,8 @@ Test results:
129
139
"started_at": "2023-10-05T12:03:57.061813665Z",
130
140
"duration": "1s",
131
141
"duration_ms": 1000,
142
+ "total_bytes_read": 2048,
143
+ "total_bytes_written": 4096,
132
144
"error": "test-0/2 error"
133
145
}
134
146
}