Rename the main module to gotea.dev and the binary to gotea, and update the application name and English locale. Keep the external gitea.dev/sdk and gitea.dev/actionslib module imports unchanged. Assisted-by: OpenCode:DeepSeek-V4.1-Flash
21 lines
661 B
Go
21 lines
661 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package queue
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gotea.dev/modules/setting"
|
|
"gotea.dev/modules/test"
|
|
)
|
|
|
|
func TestBaseRedis(t *testing.T) {
|
|
redisConn := test.PrepareTestRedis(t)
|
|
queueSetting := setting.QueueSettings{Length: 10, ConnStr: redisConn}
|
|
optsSimple := testQueueBasicOptions{NotifiableQueue: true}
|
|
optsUnique := testQueueBasicOptions{UniqueQueue: true, NotifiableQueue: true}
|
|
testQueueBasic(t, newBaseRedisSimple, toBaseConfig("baseRedis", queueSetting), optsSimple)
|
|
testQueueBasic(t, newBaseRedisUnique, toBaseConfig("baseRedisUnique", queueSetting), optsUnique)
|
|
}
|