Allow portable drafts to publish to the connected server
This commit is contained in:
@@ -214,13 +214,13 @@ func TestCLIAuthorOpenCodeReferencesGlobalSkillAndLeavesDraft(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestCLIBoundedFilesServerMismatchAndNoninteractiveGuards(t *testing.T) {
|
||||
func TestCLIBoundedFilesPortableDraftsAndNoninteractiveGuards(t *testing.T) {
|
||||
run, _, url := setup(t)
|
||||
d, err := draft.Create("test", pipeline.Template([]string{"worker"}, true), url+"-other", true, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err = run("submit", d.Path); err == nil || !strings.Contains(err.Error(), "belongs") {
|
||||
if _, err = run("submit", d.Path); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
os.WriteFile(d.Path, bytes.Repeat([]byte("x"), (1<<20)+1), 0600)
|
||||
|
||||
Reference in New Issue
Block a user