You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by sr...@apache.org on 2016/06/08 18:54:32 UTC
tez git commit: TEZ-3292. Tez UI: UTs breaking with timezone change
(sree)
Repository: tez
Updated Branches:
refs/heads/master 05d7725d2 -> d9802627b
TEZ-3292. Tez UI: UTs breaking with timezone change (sree)
Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/d9802627
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/d9802627
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/d9802627
Branch: refs/heads/master
Commit: d9802627bf78825ef0c730337bae3e1a5f7cd051
Parents: 05d7725
Author: Sreenath Somarajapuram <sr...@apache.org>
Authored: Thu Jun 9 00:17:21 2016 +0530
Committer: Sreenath Somarajapuram <sr...@apache.org>
Committed: Thu Jun 9 00:17:21 2016 +0530
----------------------------------------------------------------------
CHANGES.txt | 1 +
.../webapp/tests/integration/components/tab-n-refresh-test.js | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tez/blob/d9802627/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index f31f738..b542036 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -47,6 +47,7 @@ ALL CHANGES:
TEZ-3063. Tez UI: Display Input, Output, Processor, Source and Sink configurations under a vertex
TEZ-3281. Tez UI: Swimlane improvements
TEZ-3264. Tez UI: UI discrepancies
+ TEZ-3292. Tez UI: UTs breaking with timezone change
Release 0.8.4: Unreleased
http://git-wip-us.apache.org/repos/asf/tez/blob/d9802627/tez-ui/src/main/webapp/tests/integration/components/tab-n-refresh-test.js
----------------------------------------------------------------------
diff --git a/tez-ui/src/main/webapp/tests/integration/components/tab-n-refresh-test.js b/tez-ui/src/main/webapp/tests/integration/components/tab-n-refresh-test.js
index e05ad0a..f779b83 100644
--- a/tez-ui/src/main/webapp/tests/integration/components/tab-n-refresh-test.js
+++ b/tez-ui/src/main/webapp/tests/integration/components/tab-n-refresh-test.js
@@ -19,6 +19,8 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
+import moment from 'moment';
+
moduleForComponent('tab-n-refresh', 'Integration | Component | tab n refresh', {
integration: true
});
@@ -60,13 +62,14 @@ test('normalizedTabs test', function(assert) {
});
test('loadTime test', function(assert) {
- var loadTime = 1465226174574;
+ var loadTime = 1465226174574,
+ timeInText = moment(loadTime).format("DD MMM YYYY HH:mm:ss");
this.set("loadTime", loadTime);
this.render(hbs`{{tab-n-refresh loadTime=loadTime}}`);
assert.equal(
this.$(".refresh-ui .text-elements").text().trim().split(" ").slice(-7).join(" ").replace("\n", ""),
- "Last refreshed at 06 Jun 2016 20:46:14"
+ `Last refreshed at ${timeInText}`
);
});