Skip to content

Commit

Permalink
use patch to fix ut instead of changing code
Browse files Browse the repository at this point in the history
  • Loading branch information
welkin22 committed Nov 6, 2024
1 parent 283d8ae commit a4868a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
go-version-file: go.mod
- run: |
git apply tests/0001-diff-go-ethereum.patch
git apply tests/fix_unit_test.patch
make test
19 changes: 19 additions & 0 deletions tests/fix_unit_test.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Subject: [PATCH] fix unit test
---
Index: core/txpool/legacypool/legacypool.go
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go
--- a/core/txpool/legacypool/legacypool.go (revision 1233f69823ec26df160575add475f1e949cde211)
+++ b/core/txpool/legacypool/legacypool.go (date 1730875125704)
@@ -391,7 +391,7 @@
}

func (pool *LegacyPool) loopOfSync() {
- ticker := time.NewTicker(200 * time.Second)
+ ticker := time.NewTicker(200 * time.Millisecond)
for {
select {
case <-pool.reorgShutdownCh:

0 comments on commit a4868a1

Please sign in to comment.