mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/network/simulation: rename sendRunSignal to triggerSimulationRun
This commit is contained in:
parent
b998721bbb
commit
1279f20b6a
1 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ func TestSimulationWithHTTPServer(t *testing.T) {
|
|||
ctx, cancel2 := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel2()
|
||||
errC := make(chan error, 1)
|
||||
go sendRunSignal(t, errC)
|
||||
go triggerSimulationRun(t, errC)
|
||||
result = sim.Run(ctx, func(ctx context.Context, sim *Simulation) error {
|
||||
log.Debug("This run waits for the run signal from `frontend`...")
|
||||
//ensure with a Sleep that simulation doesn't terminate before the signal is received
|
||||
|
|
@ -90,7 +90,7 @@ func TestSimulationWithHTTPServer(t *testing.T) {
|
|||
log.Debug("Test terminated successfully")
|
||||
}
|
||||
|
||||
func sendRunSignal(t *testing.T, errC chan error) {
|
||||
func triggerSimulationRun(t *testing.T, errC chan error) {
|
||||
//We need to first wait for the sim HTTP server to start running...
|
||||
time.Sleep(2 * time.Second)
|
||||
//then we can send the signal
|
||||
|
|
|
|||
Loading…
Reference in a new issue