Skip to content

Commit 626625c

Browse files
committed
optimize
1 parent 2391140 commit 626625c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/feature/support_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
package feature
22

33
import (
4-
"fmt"
5-
"os"
64
"strings"
75
"testing"
86

9-
"github.com/goravel/framework/support"
107
"github.com/goravel/framework/support/path"
118
"github.com/stretchr/testify/assert"
129
)
@@ -20,16 +17,3 @@ func TestPathResource(t *testing.T) {
2017
assert.True(t, strings.HasPrefix(resourcePath, "/"))
2118
assert.True(t, strings.HasSuffix(resourcePath, "/resources/test.txt"))
2219
}
23-
24-
func TestChangeChdir(t *testing.T) {
25-
info, err := os.Stat("go.mod")
26-
assert.Nil(t, info)
27-
assert.Error(t, err)
28-
29-
fmt.Println(support.RelativePath)
30-
t.Chdir(support.RelativePath)
31-
32-
info, err = os.Stat("go.mod")
33-
assert.NotNil(t, info)
34-
assert.Nil(t, err)
35-
}

0 commit comments

Comments
 (0)