  In this paper, we test the cosmic distance duality (CDD) relation using the
luminosity distances from joint light-curve analysis (JLA) type Ia supernovae
(SNe Ia) sample and angular diameter distance sample from galaxy clusters. The
$R_h=ct$ and $\Lambda$CDM models are considered. In order to compare the two
models, we constrain the CCD relation and the SNe Ia light-curve parameters
simultaneously. Considering the effects of Hubble constant, we find that
$\eta\equiv D_A(1+z)^2/D_L=1$ is valid at the 2$\sigma$ confidence level in
both models with $H_0 = 67.8\pm0.9$ km/s/Mpc. However, the CDD relation is
valid at 3$\sigma$ confidence level with $H_0 = 73.45\pm1.66$ km/s/Mpc. Using
the Akaike Information Criterion (AIC) and the Bayesian Information Criterion
(BIC), we find that the $\Lambda$CDM model is very strongly preferred over the
$R_h=ct$ model with these data sets for the CDD relation test.
