Skip to content

Commit cca20b2

Browse files
fix UT
1 parent c868077 commit cca20b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/openlayers/services/GenerateSpatialDataSpec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ describe('openlayers_SpatialAnalystService_generateSpatialData', function () {
3333
var spatialAnalystService = new ol.supermap.SpatialAnalystService(changchunServiceUrl);
3434
spatialAnalystService.generateSpatialData(generateSpatialDataParameters, function (serviceResult) {
3535
serviceResults = serviceResult;
36+
});
37+
setTimeout(function () {
3638
expect(serviceResults).not.toBeNull();
3739
expect(serviceResults.type).toBe('processCompleted');
3840
expect(serviceResults.result.dataset).not.toBeNull();
39-
});
41+
done();
42+
}, 8000);
4043
});
4144
});

0 commit comments

Comments
 (0)