mirror of https://github.com/webpack/webpack.git
				
				
				
			Revert "make flanky test stable"
This commit is contained in:
		
							parent
							
								
									e0ae4c8535
								
							
						
					
					
						commit
						74d4f36a0f
					
				|  | @ -302,46 +302,4 @@ describe("Compiler (caching)", function() { | ||||||
| 			}); | 			}); | ||||||
| 		}); | 		}); | ||||||
| 	}); | 	}); | ||||||
| 
 |  | ||||||
| 	it("should build not keep error after fix", function(done) { |  | ||||||
| 
 |  | ||||||
| 		var options = {}; |  | ||||||
| 		var tempFixture = createTempFixture(); |  | ||||||
| 
 |  | ||||||
| 		var helper = compile("./temp-cache-fixture/c", options, function(stats, files) { |  | ||||||
| 
 |  | ||||||
| 			// Built the first time
 |  | ||||||
| 			stats.modules[0].name.should.containEql('a.js'); |  | ||||||
| 			stats.modules[0].built.should.be.exactly(true, 'a.js should have been built'); |  | ||||||
| 
 |  | ||||||
| 			var aContent = fs.readFileSync(tempFixture.aFilepath).toString().replace('This is a', '\"))))This is a'); |  | ||||||
| 
 |  | ||||||
| 			fs.writeFileSync(tempFixture.aFilepath, aContent); |  | ||||||
| 
 |  | ||||||
| 			setTimeout(function() { |  | ||||||
| 				helper.runAgain({ |  | ||||||
| 					expectErrors: 1 |  | ||||||
| 				}, function(stats, files, iteration) { |  | ||||||
| 
 |  | ||||||
| 					var aContent = fs.readFileSync(tempFixture.aFilepath).toString().replace('\"))))This is a', 'This is a again'); |  | ||||||
| 
 |  | ||||||
| 					fs.writeFileSync(tempFixture.aFilepath, aContent); |  | ||||||
| 
 |  | ||||||
| 					setTimeout(function() { |  | ||||||
| 						helper.runAgain(function(stats, files, iteration) { |  | ||||||
| 
 |  | ||||||
| 							// And only a.js built after it was modified
 |  | ||||||
| 							stats.modules[0].name.should.containEql('a.js'); |  | ||||||
| 							stats.modules[0].built.should.be.exactly(true, 'a.js should have been built'); |  | ||||||
| 
 |  | ||||||
| 							stats.modules[1].name.should.containEql('c.js'); |  | ||||||
| 							//stats.modules[1].built.should.be.exactly(false, 'c.js should not have built');
 |  | ||||||
| 
 |  | ||||||
| 							done(); |  | ||||||
| 						}); |  | ||||||
| 					}, 300); |  | ||||||
| 				}); |  | ||||||
| 			}, 300); |  | ||||||
| 		}); |  | ||||||
| 	}); |  | ||||||
| }); | }); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue