Read the tested nats release from the server itself
mesh/merge-gate pass: builds nats, sent nowhere; a bus step; 1 wait(s) for a person; every machine composes with the change as it did without (4 of 4 compo…
mesh/repo-check pass: its merge-check.sh passed
mesh/delivery delivered
mesh/delivery-group group fix/327-a-verb-reads-on-the-serving-connection merged: every member is merged
mesh/merge-gate pass: builds nats, sent nowhere; a bus step; 1 wait(s) for a person; every machine composes with the change as it did without (4 of 4 compo…
mesh/repo-check pass: its merge-check.sh passed
mesh/delivery delivered
mesh/delivery-group group fix/327-a-verb-reads-on-the-serving-connection merged: every member is merged
The build seat's test binary listed no dependencies, so the check that the image and the tests run one release failed on a release that matched.
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
"runtime/debug"
|
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@@ -28,19 +27,11 @@ func TestTheImageIsTheServerTestedHere(t *testing.T) {
|
|||||||
if said == nil {
|
if said == nil {
|
||||||
t.Fatal("the Dockerfile does not say which nats release its digest is (`# upstream: nats X.Y.Z-alpine`)")
|
t.Fatal("the Dockerfile does not say which nats release its digest is (`# upstream: nats X.Y.Z-alpine`)")
|
||||||
}
|
}
|
||||||
info, ok := debug.ReadBuildInfo()
|
// The server's own word for its release, compiled into it: a test binary's build information may list
|
||||||
if !ok {
|
// no dependencies (the build seat's did not, so this read "these tests run no nats-server").
|
||||||
t.Fatal("no build information to read the tested server's version from")
|
if server.VERSION != string(said[1]) {
|
||||||
|
t.Fatalf("the image runs nats %s and these tests run %s: move them together", said[1], server.VERSION)
|
||||||
}
|
}
|
||||||
for _, dep := range info.Deps {
|
|
||||||
if dep.Path == "github.com/nats-io/nats-server/v2" {
|
|
||||||
if dep.Version != "v"+string(said[1]) {
|
|
||||||
t.Fatalf("the image runs nats %s and these tests run %s: move them together", said[1], dep.Version)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
t.Fatal("these tests run no nats-server")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// **A consumer with several filters is handed every message** (novox/hq issue 266).
|
// **A consumer with several filters is handed every message** (novox/hq issue 266).
|
||||||
|
|||||||
Reference in New Issue
Block a user