|
@@ -17,7 +17,6 @@ package client_test
|
|
|
|
|
|
import (
|
|
|
"math/rand"
|
|
|
- "os"
|
|
|
"time"
|
|
|
|
|
|
. "github.com/onsi/ginkgo/v2"
|
|
@@ -26,8 +25,6 @@ import (
|
|
|
. "github.com/mudler/edgevpn/api/client"
|
|
|
)
|
|
|
|
|
|
-var testInstance = os.Getenv("TEST_INSTANCE")
|
|
|
-
|
|
|
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
|
|
|
|
func randStringBytes(n int) string {
|
|
@@ -41,14 +38,6 @@ func randStringBytes(n int) string {
|
|
|
var _ = Describe("Client", func() {
|
|
|
c := NewClient(WithHost(testInstance))
|
|
|
|
|
|
- // Start the test suite only if we have some machines connected
|
|
|
- BeforeSuite(func() {
|
|
|
- Eventually(func() (int, error) {
|
|
|
- m, err := c.Machines()
|
|
|
- return len(m), err
|
|
|
- }, 100*time.Second, 1*time.Second).Should(BeNumerically(">=", 0))
|
|
|
- })
|
|
|
-
|
|
|
Context("Operates blockchain", func() {
|
|
|
var testBucket string
|
|
|
|