You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: wbq_test.go
    path of file: ./repos/upspin/store/storecache
    
    the code of the file until where you have to start completion: // Copyright 2017 The Upspin Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package sto
    
func TestParallelismSuccess(t *testing.T) {
	max := 5
	multiple := 2
	p := newParallelism(max)

	// fill in inflights with write load
	for i := 0; i < max; i++ {
		p.add()
	}

	for n := 0; n <= 3; n++ {
		// We should increase p.max with multiple*p.max successes.
		for i := 0; i < multiple*max; i++ {
			p.success()
			p.add()
		}
		if p.max != max+1 {
			t.Errorf("p.max = %d, want %d", p.max, max+n)
		}
		max++

		// fill in the one new slot of inflight
		p.add()
	}
}