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: rate_limiter_test.go
    path of file: ./repos/hubble-ui/backend/pkg/rate_limiter
    
    the code of the file until where you have to start completion: package rate_limiter

import (
	"fmt"
	"testing"
	"time"
)

func TestDisabled(t *testing.T) {
	rl := Disabled()

	for i := 0; i < 10_000; i += 1 {
		if acq, _ := rl.Acquire(); acq {
			t.Fatal("disabled rate limiter acquired")
		}

    
func TestLimited(t *testing.T) {
	delays := []time.Duration{10_000_000}
	parts := 10

	for _, delay := range delays {
		period := time.Duration(parts) * delay
		tname := fmt.Sprintf("period-%s", period.String())

		_delay := delay
		t.Run(tname, func(t *testing.T) {
			rl := New(RateLimit{
				Limit:  1,
				Period: period,
			})

			if acq, _ := rl.Acquire(); !acq {
				t.Fatal("first acquire failed")
			}

			for i := 0; i < parts-1; i += 1 {
				t.Logf("before sleep %d (%s)\n", i, delay)
				sleep(_delay)

				if acq, _ := rl.Acquire(); acq {
					t.Fatalf("%d acquire didnt fail\n", i)
				}
			}

			sleep(_delay)
			if acq, _ := rl.Acquire(); !acq {
				t.Fatalf("acquire after for loop didnt work\n")
			}
		})
	}
}