mirror of
				https://git.cloudron.io/cloudron/gitea-app
				synced 2025-11-04 09:02:36 +00:00 
			
		
		
		
	Ensure the tests work with other instances installed
This commit is contained in:
		@@ -293,7 +293,7 @@ return done();
 | 
				
			|||||||
    it('can edit file', editFile);
 | 
					    it('can edit file', editFile);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    it('can restart app', function (done) {
 | 
					    it('can restart app', function (done) {
 | 
				
			||||||
        execSync('cloudron restart --wait');
 | 
					        execSync('cloudron restart --wait --app ' + app.id);
 | 
				
			||||||
        done();
 | 
					        done();
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -317,7 +317,7 @@ return done();
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    it('move to different location', function () {
 | 
					    it('move to different location', function () {
 | 
				
			||||||
        //browser.manage().deleteAllCookies(); // commented because of error "'Network.deleteCookie' wasn't found"
 | 
					        //browser.manage().deleteAllCookies(); // commented because of error "'Network.deleteCookie' wasn't found"
 | 
				
			||||||
        execSync('cloudron configure --wait --location ' + LOCATION + '2', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
 | 
					        execSync('cloudron configure --wait --location ' + LOCATION + '2 --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
 | 
				
			||||||
        var inspect = JSON.parse(execSync('cloudron inspect'));
 | 
					        var inspect = JSON.parse(execSync('cloudron inspect'));
 | 
				
			||||||
        app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
 | 
					        app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
 | 
				
			||||||
        expect(app).to.be.an('object');
 | 
					        expect(app).to.be.an('object');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user