chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)
This commit is contained in:
commit
9097ee699d
5769 files changed
+1446466
No files matched your search
@@ -0,0 +1,20 @@
|
||||
//go:build desktop
|
||||
|
||||
package container
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/Tencent/WeKnora/internal/application/service"
|
||||
"github.com/Tencent/WeKnora/internal/background"
|
||||
)
|
||||
|
||||
func TestDesktopWithoutHostManagerStaysRemoteOnly(t *testing.T) {
|
||||
bg := service.NewBackgroundWork(background.NewMemoryActivityRegistry(nil), background.NewMemoryNoticeInbox(nil))
|
||||
jobs, err := newShellJobService(nil, nil, bg, nil, NewResourceCleaner(),
|
||||
service.HostSandboxManager{Desktop: true})
|
||||
require.NoError(t, err)
|
||||
require.False(t, jobs.LocalAvailable())
|
||||
}
|
||||
Reference in new issue
Block a user