Add tests for job store, Len and Sample method of pool

This commit is contained in:
Jan-Eric Hellenberg
2021-05-19 12:30:43 +02:00
parent 17c9839fac
commit 5bb3c6745e
5 changed files with 193 additions and 41 deletions

16
runner/constants_test.go Normal file
View File

@@ -0,0 +1,16 @@
package runner
const (
defaultRunnerId = "s0m3-r4nd0m-1d"
anotherRunnerId = "4n0th3r-runn3r-1d"
defaultEnvironmentId = EnvironmentId(0)
anotherEnvironmentId = EnvironmentId(42)
defaultJobId = "s0m3-j0b-1d"
anotherJobId = "4n0th3r-j0b-1d"
)
type DummyEntity struct{}
func (DummyEntity) Id() string {
return ""
}