reorder some source files

This commit is contained in:
2026-03-11 09:54:17 +02:00
parent 30fe237657
commit f4c9948c61
27 changed files with 283 additions and 2403 deletions
+2 -14
View File
@@ -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))