summaryrefslogtreecommitdiffstats
path: root/modules/queue/base_channel_test.go
blob: 5d0a2ed0a7c2158ce41e4da6fa2f62b9a5458b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package queue

import "testing"

func TestBaseChannel(t *testing.T) {
	testQueueBasic(t, newBaseChannelSimple, &BaseConfig{ManagedName: "baseChannel", Length: 10}, false)
	testQueueBasic(t, newBaseChannelUnique, &BaseConfig{ManagedName: "baseChannel", Length: 10}, true)
}