mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-22 07:06:51 +00:00
fix: use relative imports for testutil in all s3_test_main.go files
- Change imports from absolute module path 'github.com/seaweedfs/seaweedfs/test/s3/testutil' to relative path '../testutil' - Fixes module resolution issues when running tests from individual directories - All test directories now compile and load testutil correctly - Enables tests to run with 'go test ./...' from any test subdirectory
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package acl
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package basic
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package iam
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
var testServer *testutil.Server
|
||||
|
||||
// TestMain sets up and tears down the test environment using weed mini
|
||||
func TestMain(m *testing.M) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweedfs/test/s3/testutil"
|
||||
"../testutil"
|
||||
)
|
||||
|
||||
var testServer *testutil.TestServer
|
||||
|
||||
Reference in New Issue
Block a user