Skip to content

Commit

Permalink
Update travis and test
Browse files Browse the repository at this point in the history
Wait 10 seconds for seaweedfs to run before test
  • Loading branch information
linxGnu committed Aug 3, 2017
1 parent fa869c6 commit 4b6a55e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -21,7 +21,7 @@ before_script:
- cd $HOME/gopath/src/github.com/chrislusf/seaweedfs/weed && rm glide.yaml && trash -u && trash && go build && mv weed $HOME/
- rm -rf $HOME/gopath/src/github.com/chrislusf
- cd $HOME
- ./weed master -defaultReplication="000" -ip="localhost" -ip.bind="0.0.0.0" -port="8898" -maxCpu=2 -mdir="/tmp/sw/master/metadata" -peers="localhost:7898" -volumePreallocate -volumeSizeLimitMB="1024" -whiteList="localhost,127.0.0.1,::1" &
- ./weed master -defaultReplication="000" -ip="localhost" -ip.bind="0.0.0.0" -port="8898" -maxCpu=2 -mdir="/tmp/sw/master/metadata" -volumePreallocate -volumeSizeLimitMB="1024" -whiteList="localhost,127.0.0.1,::1" &
- ./weed volume -dataCenter="dc1" -rack="rack1" -ip="localhost" -ip.bind="0.0.0.0" -port="8899" -dir="/tmp/sw/volume1/data" -images.fix.orientation="false" -index="leveldb" -max=50 -maxCpu=2 -mserver="localhost:8898" -whiteList="localhost,127.0.0.1,::1" &
- cd $HOME/gopath/src/github.com/linxGnu/goseaweedfs

Expand Down
2 changes: 1 addition & 1 deletion seaweed_test.go
Expand Up @@ -32,7 +32,7 @@ func init() {
MediumFile = os.Getenv("GOSWFS_MEDIUM_FILE")
SmallFile = os.Getenv("GOSWFS_SMALL_FILE")

time.Sleep(3 * time.Second)
time.Sleep(10 * time.Second)
}

func TestUploadLookupserverReplaceDeleteFile(t *testing.T) {
Expand Down

0 comments on commit 4b6a55e

Please sign in to comment.