Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for prepareTestBackend (0.14 sec)

  1. cmd/benchmark-utils_test.go

    func benchmarkPutObjectPart(b *testing.B, instanceType string, objSize int) {
    	// create a temp Erasure/FS backend.
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	objLayer, disks, err := prepareTestBackend(ctx, instanceType)
    	if err != nil {
    		b.Fatalf("Failed obtaining Temp Backend: <ERROR> %s", err)
    	}
    	// cleaning up the backend by removing all the directories and files created on function return.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	ctx, cancel := context.WithCancel(context.Background())
    	// create an instance of TestServer.
    	testServer := TestServer{cancel: cancel}
    	// return FS/Erasure object layer and temp backend.
    	objLayer, disks, err := prepareTestBackend(ctx, instanceType)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// set new server configuration.
    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		t.Fatalf("%s", err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top