Prepare for deploy test
This commit is contained in:
		
							parent
							
								
									a03dc89195
								
							
						
					
					
						commit
						372f86a504
					
				
							
								
								
									
										2
									
								
								controllers/prototype/dbrequests.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								controllers/prototype/dbrequests.js
									
									
									
									
										vendored
									
									
								
							| @ -801,7 +801,7 @@ DBReq.ExpCreator.prototype.finish = function() { | ||||
|     // Commit, and then release
 | ||||
|     this.client.query("COMMIT;", function() { | ||||
| 
 | ||||
|         Log.debug('Exp creation took ' + (Date.now() - self.startTime) + ' ms'); | ||||
|         Log.debug('Exp creation took ' + (Date.now() - self.startTime) + ' ms', true); | ||||
| 
 | ||||
|         self.release(); | ||||
|         self.client = null; | ||||
|  | ||||
| @ -73,15 +73,13 @@ Log.mailerror = function(error) { | ||||
|     ); | ||||
| }; | ||||
| 
 | ||||
| if (isDev) { | ||||
|     Log.debug = function(info) { | ||||
| Log.debug = function(info, force) { | ||||
|     if (isDev || force === true) { | ||||
|         log( | ||||
|             '[DBG] ' + (info !== undefined ? info : ''), | ||||
|             Colors.ORANGE | ||||
|         ); | ||||
|     }; | ||||
| } else { | ||||
|     Log.debug = function(){}; | ||||
| } | ||||
|     } | ||||
| }; | ||||
| 
 | ||||
| module.exports = Log; | ||||
|  | ||||
| @ -1,3 +1,6 @@ | ||||
| var baseUrl = 'http://localhost:4000/'; | ||||
| var baseUrl = 'http://3dinterface.no-ip.org/'; | ||||
| 
 | ||||
| function makeId() | ||||
| { | ||||
|     var text = ""; | ||||
| @ -18,13 +21,13 @@ var casper = require('casper').create({ | ||||
| 
 | ||||
| var limit = 100; | ||||
| 
 | ||||
| casper.start('http://localhost:4000/'); | ||||
| casper.start(baseUrl); | ||||
| 
 | ||||
| for (var i = 0; i < limit; i++) { | ||||
| 
 | ||||
|     (function(i) { | ||||
| 
 | ||||
|         casper.thenOpen('http://localhost:4000/user-study', function() { | ||||
|         casper.thenOpen(baseUrl + 'user-study', function() { | ||||
| 
 | ||||
|             console.log(i); | ||||
| 
 | ||||
| @ -42,12 +45,12 @@ for (var i = 0; i < limit; i++) { | ||||
| 
 | ||||
|             // }, true);
 | ||||
| 
 | ||||
|             this.thenOpen('http://localhost:4000/prototype/tutorial'); | ||||
|             this.thenOpen('http://localhost:4000/prototype/play'); | ||||
|             this.thenOpen('http://localhost:4000/prototype/play'); | ||||
|             this.thenOpen('http://localhost:4000/prototype/play'); | ||||
|             this.thenOpen(baseUrl + 'prototype/tutorial'); | ||||
|             this.thenOpen(baseUrl + 'prototype/play'); | ||||
|             this.thenOpen(baseUrl + 'prototype/play'); | ||||
|             this.thenOpen(baseUrl + 'prototype/play'); | ||||
| 
 | ||||
|             this.thenOpen('http://localhost:4000/logout'); | ||||
|             this.thenOpen(baseUrl + 'logout'); | ||||
| 
 | ||||
|         }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user