22 lines
409 B
Go
22 lines
409 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
"time"
|
|
|
|
"git.sapphic.engineer/ps2.live/saerro-go/store/storemock"
|
|
)
|
|
|
|
func TestRun(t *testing.T) {
|
|
ps := new(storemock.MockPlayerStore)
|
|
vs := new(storemock.MockVehicleStore)
|
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
|
|
defer cancel()
|
|
|
|
ps.On("Prune", ctx).Return(30, nil)
|
|
vs.On("Prune", ctx).Return(30, nil)
|
|
|
|
run(ctx, ps, vs)
|
|
}
|