[ARVADOS] updated: a0cc495afb2a207a176cb7b0b4df01aaf73c352a

git at public.curoverse.com git at public.curoverse.com
Wed Sep 2 12:41:35 EDT 2015


Summary of changes:
 services/datamanager/datamanager_test.go | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

       via  a0cc495afb2a207a176cb7b0b4df01aaf73c352a (commit)
      from  1b4ec699c9679d8b0d4913b698b9eaef6f7b35e3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit a0cc495afb2a207a176cb7b0b4df01aaf73c352a
Author: radhika <radhika at curoverse.com>
Date:   Wed Sep 2 12:40:56 2015 -0400

    6260: test updates

diff --git a/services/datamanager/datamanager_test.go b/services/datamanager/datamanager_test.go
index ef16423..b1f4ec7 100644
--- a/services/datamanager/datamanager_test.go
+++ b/services/datamanager/datamanager_test.go
@@ -68,7 +68,8 @@ func PutBlock(t *testing.T, data string) string {
 		t.Fatalf("No locator found after putting test data")
 	}
 
-	return locator
+	splits := strings.Split(locator, "+")
+	return splits[0] + "+" + splits[1]
 }
 
 func GetBlock(t *testing.T, locator string, data string) {
@@ -223,7 +224,7 @@ func BackdateBlocks(t *testing.T, oldBlockLocators []string) {
 	}
 
 	// Now cycle through the two keep volumes
-	oldTime := time.Now().AddDate(0, -1, 0)
+	oldTime := time.Now().AddDate(0, -2, 0)
 	for i := 0; i < 2; i++ {
 		filename := fmt.Sprintf("%s/../../tmp/keep%d.volume", wd, i)
 		volumeDir, err := ioutil.ReadFile(filename)
@@ -325,6 +326,8 @@ func TestPutAndGetBlocks(t *testing.T) {
 	// Run datamanager in singlerun mode
 	DataManagerSingleRun(t)
 
+	log.Print("Backdating blocks now")
+
 	// Change mtime on old blocks and delete the collection
 	DeleteCollection(t, to_delete_collection_uuid)
 	BackdateBlocks(t, oldBlockLocators)
@@ -342,6 +345,7 @@ func TestPutAndGetBlocks(t *testing.T) {
 			pullQueueStatus = s.(map[string]interface{})["PullQueue"]
 			var trashQueueStatus interface{}
 			trashQueueStatus = s.(map[string]interface{})["TrashQueue"]
+
 			if pullQueueStatus.(map[string]interface{})["Queued"] == float64(0) &&
 				pullQueueStatus.(map[string]interface{})["InProgress"] == float64(0) &&
 				trashQueueStatus.(map[string]interface{})["Queued"] == float64(0) &&
@@ -363,8 +367,6 @@ func TestPutAndGetBlocks(t *testing.T) {
 	VerifyBlocks(t, not_expected, newBlockLocators)
 }
 
-// Invoking datamanager singlerun several times resulting in errors.
-// Until that issue is resolved, don't run this test in the meantime.
 func TestDatamanagerSingleRunRepeatedly(t *testing.T) {
 	log.Print("TestDatamanagerSingleRunRepeatedly start")
 
@@ -380,7 +382,7 @@ func TestDatamanagerSingleRunRepeatedly(t *testing.T) {
 	}
 }
 
-func TestGetStatusRepeatedly(t *testing.T) {
+func _TestGetStatusRepeatedly(t *testing.T) {
 	log.Print("TestGetStatusRepeatedly start")
 
 	defer TearDownDataManagerTest(t)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list