d93428d72181b2f64cc04febc72a6415d184122f
angie
  Tue Jun 2 10:56:53 2015 -0700
Fix for hgTablesTest checking of commas in join results: it's the
second column, not the first, that should be checked for commas.
refs #15237

diff --git src/hg/hgTablesTest/hgTablesTest.c src/hg/hgTablesTest/hgTablesTest.c
index b9698c8..c032b62 100644
--- src/hg/hgTablesTest/hgTablesTest.c
+++ src/hg/hgTablesTest/hgTablesTest.c
@@ -854,41 +854,41 @@
     e = strchr(s, '\n');
     if (e != NULL)
        *e++ = 0;
     if (s[0] != '#')
 	{
 	fieldCount = chopTabs(s, row);
 	if (fieldCount != 2)
 	    {
 	    qaStatusSoftError(tablesTestList->status, 
 		    "Got %d fields line %d of  joined result, expected 2", 
 		    fieldCount, lineIx);
 	    break;
 	    }
 	if (sameString(row[1], "n/a"))
 	     gotNa = TRUE;
-	if (countChars(s, ',') >= 2)
+	if (countChars(row[1], ',') >= 2)
 	     gotCommas = TRUE;
 	}
     s = e;
     }
 if (!gotCommas)
     qaStatusSoftError(tablesTestList->status, 
            "Expected some rows in join to have comma separated lists.");
 if (!gotNa)
     qaStatusSoftError(tablesTestList->status, 
-           "Expected some rows in joint to have n/a.");
+           "Expected some rows in join to have n/a.");
 }
 
 
 void testJoining(struct htmlPage *rootPage)
 /* Simulate pressing buttons to get a reasonable join on a
  * couple of uniProt tables. */
 {
 struct htmlPage *allPage, *page;
 char *org = NULL, *db = NULL, *group = "allTables", *track="uniProt";
 int expectedCount = tableSize("uniProt", "taxon");
 
 allPage = quickSubmit(rootPage, org, db, group, "uniProt", 
 	"uniProt.taxon", "taxonJoin1", NULL, NULL);
 if (allPage != NULL)
     {