<commit_before>var windward = require('../index.js');

var statusCount = 0, workflowCount = 0;
var deviceInfo = {
	updateInterval : 10000
};
windward.workflow({
	status : function(done) {
		statusCount++;
		console.log("Status: " + statusCount);
		deviceInfo.updateInterval = 30000;
		done();
	},
}, {
	deviceInfo : deviceInfo
}).statusInterval(1000).maxRuns(3).start(function() {
	workflowCount++;
	console.log("Workflow: " + workflowCount);
}).end(
		function() {
			console.log("statusCount: " + statusCount + ", workflowCount: "
					+ workflowCount);
		});<commit_msg>Updated test to include connect<commit_after>var windward = require('../index.js');

var statusCount = 0, workflowCount = 0;
var deviceInfo = {
	updateInterval : 10000
};

windward.connect('540f8c6340bed70000165f80', '54111605e668ad675c000000',
		function(info, err) {
			if (!err) {
				windward.workflow().statusInterval(1000).maxRuns(3).start(
						function(workflow, interval) {
							workflowCount++;
							console.log("Workflow: " + workflowCount
									+ ", interval: " + interval);
						}).end(function() {
					console.log("Done");
				});
			}
		});
{'fraction_non_alphanumeric': 0.16695957820738136, 'fraction_numerical': 0.058875219683655534, 'mean_word_length': 4.084821428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4393102', 'n_tokens_mistral': 478, 'n_tokens_neox': 366, 'n_words': 65}