reorder some source files
This commit is contained in:
+2
-14
@@ -10,18 +10,14 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
//"math/rand"
|
||||
//"os"
|
||||
//"path/filepath"
|
||||
"bytes"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"mstore/app/server"
|
||||
"mstore/pkg/client"
|
||||
"mstore/pkg/filecli"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -70,15 +66,7 @@ func TestFileLife(t *testing.T) {
|
||||
go startFunc()
|
||||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
{
|
||||
// ServiceHello
|
||||
fmt.Printf("=== ServiceHello ===\n")
|
||||
cli := client.NewClient(true)
|
||||
ctx := context.Background()
|
||||
helloRes, err := cli.ServiceHello(ctx, srvaddr+"/hello", 1*time.Second)
|
||||
require.NoError(t, err)
|
||||
require.True(t, helloRes)
|
||||
}
|
||||
|
||||
fileaddr := srvaddr + "/foo2/bare.bin"
|
||||
filedata := []byte("Hello, World")
|
||||
filesize := int64(len(filedata))
|
||||
|
||||
Reference in New Issue
Block a user