Skip to content

Commit

Permalink
Bump enginekit version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Apr 7, 2024
1 parent 2bb1af2 commit 17c12da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/dogmatiq/configkit v0.13.0
github.com/dogmatiq/discoverkit v0.1.2
github.com/dogmatiq/dogma v0.13.0
github.com/dogmatiq/enginekit v0.10.0
github.com/dogmatiq/enginekit v0.10.2
github.com/dogmatiq/example v0.0.0-20230606031437-2bd84c72050b
github.com/dogmatiq/ferrite v1.3.0
github.com/dogmatiq/marshalkit v0.7.3
Expand All @@ -27,6 +27,7 @@ require (

require (
github.com/dogmatiq/cosyne v0.2.0 // indirect
github.com/dogmatiq/dapper v0.5.3 // indirect
github.com/dogmatiq/dyad v1.0.0 // indirect
github.com/dogmatiq/iago v0.4.0 // indirect
github.com/dogmatiq/interopspec v0.5.3 // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ github.com/dogmatiq/configkit v0.13.0 h1:pV2Pz0iBUBnRfOm6tbWVRXvuh2bWHBScOh8KfVp
github.com/dogmatiq/configkit v0.13.0/go.mod h1:9Sx3e0G9o/wPvRfhpKcS7+3bhYHmOyRBqKdXRZdDx7M=
github.com/dogmatiq/cosyne v0.2.0 h1:tO957BpS4I9kqSw31ds6Ef4CXvV8zPAqWzbXKElsGWg=
github.com/dogmatiq/cosyne v0.2.0/go.mod h1:dD8EZjbRX7FFw9t6P7l1nwoZbA7YxtOCfl9ZZAHPucU=
github.com/dogmatiq/dapper v0.5.1 h1:ukchNhVD9XUPsdEebJCmCsi1LaTDyouz3HrwoiYUSSU=
github.com/dogmatiq/dapper v0.5.1/go.mod h1:GkboktespYmpKgOG70ylT1gmD0LE12NL1YtDnLd1j/E=
github.com/dogmatiq/dapper v0.5.3 h1:DZkitO0TiokaiZt+9J7UNnagW2ezSYmJUlDTXLWGf8g=
github.com/dogmatiq/dapper v0.5.3/go.mod h1:lrBXvNri2wXkk1T0muaTUqd5lVDwIBRKeOzVRU46XI0=
github.com/dogmatiq/discoverkit v0.1.2 h1:NFgFe151bINH3/mNrIS6w0fiEWToSVwIHrjCDiEHw/Y=
github.com/dogmatiq/discoverkit v0.1.2/go.mod h1:mUFlbosF4i5papOkUa+OfTLv09AU/1cAU7GvN0Qd+VI=
github.com/dogmatiq/dogma v0.13.0 h1:MKk9MHErGKD53Y+43I4fcoPZMQjX0N2DUZEc4rLp+Hk=
github.com/dogmatiq/dogma v0.13.0/go.mod h1:9lyVA+6V2+E/exV0IrBOrkUiyFwIATEhv+b0vnB2umQ=
github.com/dogmatiq/dyad v1.0.0 h1:T50WQ9rAzCMcT941wVH5RW5+tAGRssuVlNog+ZMQR54=
github.com/dogmatiq/dyad v1.0.0/go.mod h1:PrUQr7OCSEUjAkhi7ad8BjxFPKe0I9yP2f1kGimPcJE=
github.com/dogmatiq/enginekit v0.10.0 h1:C91DZBslmguo7wcqgRCcjbugjPumCekS3SwQvE2p9bQ=
github.com/dogmatiq/enginekit v0.10.0/go.mod h1:fKNQjM5so2YHTvnfESYnClqL2iJpkx4nkHVm0Ao+35g=
github.com/dogmatiq/enginekit v0.10.2 h1:7XUbvLr37nEbd7LII/862mglSH/g/zDJU3ZHzg6PUmg=
github.com/dogmatiq/enginekit v0.10.2/go.mod h1:B1J2hHeTzj1YD5i1Rx5ThbYIWf2qHauuYFxwwnC7+YM=
github.com/dogmatiq/example v0.0.0-20230606031437-2bd84c72050b h1:vRJWjMJA6MIKe8IaEv9Z/3AXdCHDXsvBqmMoKyMCcTU=
github.com/dogmatiq/example v0.0.0-20230606031437-2bd84c72050b/go.mod h1:d8HZas5KOk53VdrditUtsAab4OTAN3JPI48+Od14o5U=
github.com/dogmatiq/ferrite v1.3.0 h1:T8JnwO2x/Bu9TFDZxYDRH9UwrAf586+i/n2bQp3fXsI=
Expand Down
10 changes: 5 additions & 5 deletions internal/cluster/partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ func TestPartitioner(t *testing.T) {
p := &Partitioner{}
remaining := uuidpb.Set{}

for i := 0; i < 10; i++ {
for range 10 {
id := uuidpb.Generate()
p.AddNode(id)
remaining.Add(id)
}

start := time.Now()
timeout := 30 * time.Second
timeout := 5 * time.Second

for len(remaining) != 0 {
if time.Since(start) > timeout {
Expand All @@ -64,14 +64,14 @@ func TestPartitioner(t *testing.T) {
t.Parallel()

p := &Partitioner{}
for i := 0; i < 10; i++ {
for range 10 {
p.AddNode(uuidpb.Generate())
}

workload := uuidpb.Generate()
expect := p.Route(workload)

for i := 0; i < 10; i++ {
for i := range 10 {
actual := p.Route(workload)
if !actual.Equal(expect) {
t.Fatalf("attempt #%d: got %q, want %q", i+1, actual, expect)
Expand All @@ -83,7 +83,7 @@ func TestPartitioner(t *testing.T) {
t.Parallel()

p := &Partitioner{}
for i := 0; i < 10; i++ {
for range 10 {
p.AddNode(uuidpb.Generate())
}

Expand Down

0 comments on commit 17c12da

Please sign in to comment.