Skip to content

Commit 2ad432f

Browse files
committed
test(e2e): rm raceDetectorEnabled check
1 parent 87ad867 commit 2ad432f

3 files changed

Lines changed: 0 additions & 23 deletions

File tree

race_off_test.go

Lines changed: 0 additions & 6 deletions
This file was deleted.

race_on_test.go

Lines changed: 0 additions & 6 deletions
This file was deleted.

run_e2e_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ import (
1717
// as a bot, fetches self, starts gap recovery, and (from OnStart) sends a real
1818
// message over the encrypted MTProto transport — covering the Run lifecycle.
1919
func TestRunEndToEnd(t *testing.T) {
20-
if raceDetectorEnabled {
21-
// The real client teardown trips an upstream race in gotd/td's rpc
22-
// Engine: Do checks isClosed() then calls wg.Add(1) (engine.go:81)
23-
// while Close runs wg.Wait() (engine.go:293) — a WaitGroup Add-during-
24-
// Wait. The updates manager's periodic getDifference issues Do calls
25-
// concurrently with connection shutdown on cancel, so any -race run of
26-
// this lifecycle test flags it. It is not a botapi bug and v0.156.1 is
27-
// the latest gotd/td release; skip under the race detector.
28-
t.Skip("upstream gotd/td rpc.Engine shutdown race (Do wg.Add vs Close wg.Wait)")
29-
}
30-
3120
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
3221
defer cancel()
3322

0 commit comments

Comments
 (0)