(t *testing.T)
| 1033 | } |
| 1034 | |
| 1035 | func TestAutoAcceptNewFolder(t *testing.T) { |
| 1036 | // New folder |
| 1037 | m, cancel := newState(t, defaultAutoAcceptCfg) |
| 1038 | defer cleanupModel(m) |
| 1039 | defer cancel() |
| 1040 | id := srand.String(8) |
| 1041 | m.ClusterConfig(device1Conn, createClusterConfig(device1, id)) |
| 1042 | if fcfg, ok := m.cfg.Folder(id); !ok || !fcfg.SharedWith(device1) { |
| 1043 | t.Error("expected shared", id) |
| 1044 | } |
| 1045 | } |
| 1046 | |
| 1047 | func TestAutoAcceptNewFolderFromTwoDevices(t *testing.T) { |
| 1048 | m, cancel := newState(t, defaultAutoAcceptCfg) |
nothing calls this directly
no test coverage detected