@@ -121,20 +121,6 @@ func TestMatchPlayShowResult(t *testing.T) {
121
121
assert .Equal (t , 302 , recorder .Code )
122
122
assert .Equal (t , match .Id , mainArena .savedMatch .Id )
123
123
assert .Equal (t , match .Id , mainArena .savedMatchResult .MatchId )
124
-
125
- // Verify TBA and STEMtv publishing by checking the log for the expected failure messages.
126
- tbaBaseUrl = "fakeurl"
127
- stemTvBaseUrl = "fakeurl"
128
- eventSettings .TbaPublishingEnabled = true
129
- eventSettings .StemTvPublishingEnabled = true
130
- var writer bytes.Buffer
131
- log .SetOutput (& writer )
132
- recorder = getHttpResponse (fmt .Sprintf ("/match_play/%d/show_result" , match .Id ))
133
- assert .Equal (t , 302 , recorder .Code )
134
- time .Sleep (time .Millisecond * 10 ) // Allow some time for the asynchronous publishing to happen.
135
- assert .Contains (t , writer .String (), "Failed to publish matches" )
136
- assert .Contains (t , writer .String (), "Failed to publish rankings" )
137
- assert .Contains (t , writer .String (), "Failed to publish match video split to STEMtv" )
138
124
}
139
125
140
126
func TestMatchPlayErrors (t * testing.T ) {
@@ -192,6 +178,17 @@ func TestCommitMatch(t *testing.T) {
192
178
assert .Equal (t , 3 , matchResult .PlayNumber )
193
179
match , _ = db .GetMatchById (1 )
194
180
assert .Equal (t , "T" , match .Winner )
181
+
182
+ // Verify TBA publishing by checking the log for the expected failure messages.
183
+ tbaBaseUrl = "fakeurl"
184
+ eventSettings .TbaPublishingEnabled = true
185
+ var writer bytes.Buffer
186
+ log .SetOutput (& writer )
187
+ err = CommitMatchScore (match , matchResult , false )
188
+ assert .Nil (t , err )
189
+ time .Sleep (time .Millisecond * 10 ) // Allow some time for the asynchronous publishing to happen.
190
+ assert .Contains (t , writer .String (), "Failed to publish matches" )
191
+ assert .Contains (t , writer .String (), "Failed to publish rankings" )
195
192
}
196
193
197
194
func TestCommitEliminationTie (t * testing.T ) {
0 commit comments